diff --git a/core/eolearn/tests/test_utils/test_parsing.py b/core/eolearn/tests/test_utils/test_parsing.py index 664c23a16..cb8f20445 100644 --- a/core/eolearn/tests/test_utils/test_parsing.py +++ b/core/eolearn/tests/test_utils/test_parsing.py @@ -170,7 +170,7 @@ def test_allowed_feature_types(test_input: FeaturesSpecification, allowed_types: FeatureParser(features=test_input, allowed_feature_types=allowed_types) -@pytest.fixture(name="eopatch", scope="session") +@pytest.fixture(name="eopatch", scope="module") def eopatch_fixture(): return EOPatch( data=dict(data=np.zeros((2, 2, 2, 2)), CLP=np.zeros((2, 2, 2, 2))), # name duplication intentional diff --git a/visualization/eolearn/tests/test_eopatch.py b/visualization/eolearn/tests/test_eopatch.py index 1d2dd555c..6e7078044 100644 --- a/visualization/eolearn/tests/test_eopatch.py +++ b/visualization/eolearn/tests/test_eopatch.py @@ -17,7 +17,7 @@ from eolearn.visualization import PlotConfig -@pytest.fixture(name="eopatch") +@pytest.fixture(name="eopatch", scope="module") def eopatch_fixture(): path = os.path.join(os.path.dirname(os.path.realpath(__file__)), "..", "..", "..", "example_data", "TestEOPatch") return EOPatch.load(path)