Skip to content

Commit

Permalink
remove fixture
Browse files Browse the repository at this point in the history
  • Loading branch information
fjakobs committed Mar 5, 2024
1 parent 7e2f571 commit 289839b
Showing 1 changed file with 2 additions and 10 deletions.
Original file line number Diff line number Diff line change
@@ -1,15 +1,7 @@
from pyspark.sql import SparkSession
from pytest import fixture
from {{.project_name}}.main import get_taxis, get_spark


@fixture(scope="session")
def spark() -> SparkSession:
spark = get_spark()
yield spark
spark.stop()


def test_main(spark: SparkSession):
taxis = get_taxis(spark)
def test_main():
taxis = get_taxis(get_spark())
assert taxis.count() > 5

0 comments on commit 289839b

Please sign in to comment.