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 ):