File size: 433 Bytes
de46078
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
from __future__ import annotations

from pathlib import Path

import pytest

from spark_eval.runner import get_spark

TASKS_DIR = Path(__file__).resolve().parent.parent / "tasks"


@pytest.fixture(scope="session")
def spark():
    """One session for the whole test run. JVM startup dominates otherwise."""
    session = get_spark("spark-eval-tests")
    session.sparkContext.setLogLevel("ERROR")
    yield session
    session.stop()