import pytest
from pyspark.sql.session import SparkSession


@pytest.fixture(scope="session")
def spark_test_session():
    return (
        SparkSession
        .builder
        .master('local[*]')
        .appName('unit-testing')
        .getOrCreate()
    )

9d7f9507e33be5a74d775b328ecbea95843aca94
<mask token>

<mask token>


@pytest.fixture(scope='session')
def spark_test_session():
    return SparkSession.builder.master('local[*]').appName('unit-testing'
        ).getOrCreate()

import pytest
from pyspark.sql.session import SparkSession


@pytest.fixture(scope='session')
def spark_test_session():
    return SparkSession.builder.master('local[*]').appName('unit-testing'
        ).getOrCreate()

import pytest
from pyspark.sql.session import SparkSession


@pytest.fixture(scope="session")
def spark_test_session():
    return (
        SparkSession
        .builder
        .master('local[*]')
        .appName('unit-testing')
        .getOrCreate()
    )
