Last active
March 6, 2019 11:37
-
-
Save asgillmor/4d3ea1693084336b59bf8aa360d20c5c to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@pytest.fixture(scope='session') | |
def spark_context(): | |
conf = SparkConf().setMaster('local[2]').setAppName('pytest-pyspark-local-testing') | |
sc = SparkContext(conf=conf) | |
yield sc |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment