From 26b806e260a986c9adae5295846b2c31dc52b746 Mon Sep 17 00:00:00 2001 From: Jernej Sabadin Date: Fri, 10 Jan 2025 11:16:15 +0100 Subject: [PATCH] fix order of tests --- tests/conftest.py | 2 +- tests/test_data/test_dataset.py | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/tests/conftest.py b/tests/conftest.py index 8a7000f2..8547a296 100644 --- a/tests/conftest.py +++ b/tests/conftest.py @@ -112,7 +112,7 @@ def augmentation_config() -> List[Dict[str, Any]]: ] -@pytest.fixture(scope="session") +@pytest.fixture(scope="function") def tempdir(): path = Path("tests/data/tempdir") path.mkdir(parents=True, exist_ok=True) diff --git a/tests/test_data/test_dataset.py b/tests/test_data/test_dataset.py index bf90e36a..78b1b7ff 100644 --- a/tests/test_data/test_dataset.py +++ b/tests/test_data/test_dataset.py @@ -490,6 +490,7 @@ def generator(): ) +@pytest.mark.dependency(name="test_clone_dataset") def test_clone_dataset( bucket_storage: BucketStorage, dataset_name: str, tempdir: Path ): @@ -526,6 +527,7 @@ def generator1(): assert df_cloned.equals(df_original) +@pytest.mark.dependency(depends=["test_clone_dataset"]) def test_merge_datasets( bucket_storage: BucketStorage, dataset_name: str, tempdir: Path ):