diff --git a/tests/tests/test_brainmapper/test_transform_widget.py b/tests/tests/test_brainmapper/test_transform_widget.py index 89643e6..dd57506 100644 --- a/tests/tests/test_brainmapper/test_transform_widget.py +++ b/tests/tests/test_brainmapper/test_transform_widget.py @@ -102,6 +102,11 @@ ) +@pytest.fixture +def sample_dataframe(): + return pd.DataFrame({"column1": [1, 2, 3], "column2": ["a", "b", "c"]}) + + @pytest.fixture def random_json_path(tmp_path): json_path = tmp_path / "random_json.json" @@ -123,7 +128,7 @@ def mock_display_info(mocker): ) -@pytest.fixture +@pytest.fixture(scope="function") def transformation_widget_with_transformed_points( transformation_widget_with_data, ): @@ -415,11 +420,6 @@ def test_analysis(transformation_widget_with_transformed_points): ) -@pytest.fixture -def sample_dataframe(): - return pd.DataFrame({"column1": [1, 2, 3], "column2": ["a", "b", "c"]}) - - def test_save_df_to_csv( mocker, transformation_widget_with_transformed_points,