|
3 | 3 | import pandas as pd |
4 | 4 | import warnings |
5 | 5 |
|
6 | | -# Import the class we are testing |
7 | 6 | from fishplotpy.data import FishPlotData |
8 | 7 |
|
9 | 8 | # --- Basic Valid Data --- |
|
16 | 15 | ], columns=VALID_TIMEPOINTS) |
17 | 16 | VALID_PARENTS = [0, 1, 1] |
18 | 17 |
|
19 | | -# --- Test Fixture for Valid Data (Optional but good practice) --- |
| 18 | +# --- Test Fixture for Valid Data --- |
20 | 19 | @pytest.fixture |
21 | 20 | def valid_input_data(): |
22 | 21 | """Provides a copy of basic valid input data.""" |
@@ -227,8 +226,6 @@ def test_get_outer_space(fp_data_for_space_tests): |
227 | 226 | # Only Clone 1 is root (parent=0). |
228 | 227 | # Outer space = 100 - fraction(Clone 1) |
229 | 228 | expected_outer = 100.0 - np.array([100.0, 60.0, 95.0]) # -> [0, 40, 5] |
230 | | - # Calculation happens within layout_clones, but we can call the private method directly for testing |
231 | | - # or check the attribute after layout_clones runs. Let's call layout_clones. |
232 | 229 | fp_data_for_space_tests.layout_clones() |
233 | 230 | np.testing.assert_allclose(fp_data_for_space_tests.outer_space, expected_outer, atol=1e-9) |
234 | 231 |
|
@@ -264,5 +261,5 @@ def test_get_inner_space_no_children(): |
264 | 261 |
|
265 | 262 | inner_space_calculated = fp_data.inner_space.astype(float) |
266 | 263 |
|
267 | | - # Now compare, check_column_type might not even be needed now |
| 264 | + # and compare |
268 | 265 | pd.testing.assert_frame_equal(inner_space_calculated, expected_inner) |
0 commit comments