Skip to content

Commit

Permalink
chore: Remove obsolete skips in tests (#362)
Browse files Browse the repository at this point in the history
### Description

Many `CAREamist` tests were skipped with the `bmz` reason. This seems to
be obsolete since the BMZ export works. This PR removes the test
skipping.
  • Loading branch information
jdeschamps authored Jan 20, 2025
1 parent 3dd59ab commit b5b40a6
Showing 1 changed file with 0 additions and 11 deletions.
11 changes: 0 additions & 11 deletions tests/test_careamist.py
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,6 @@ def test_train_error_target_unsupervised_algorithm(
)


@pytest.mark.skip(reason="bmz")
def test_train_single_array_no_val(tmp_path: Path, minimum_n2v_configuration: dict):
"""Test that CAREamics can be trained with arrays."""
# training data
Expand Down Expand Up @@ -122,7 +121,6 @@ def test_train_single_array_no_val(tmp_path: Path, minimum_n2v_configuration: di
assert (tmp_path / "model.zip").exists()


@pytest.mark.skip(reason="bmz")
def test_train_array(tmp_path: Path, minimum_n2v_configuration: dict):
"""Test that CAREamics can be trained on arrays."""
# training data
Expand Down Expand Up @@ -158,7 +156,6 @@ def test_train_array(tmp_path: Path, minimum_n2v_configuration: dict):
assert (tmp_path / "model.zip").exists()


@pytest.mark.skip(reason="bmz")
@pytest.mark.parametrize("independent_channels", [False, True])
def test_train_array_channel(
tmp_path: Path, minimum_n2v_configuration: dict, independent_channels: bool
Expand Down Expand Up @@ -201,7 +198,6 @@ def test_train_array_channel(
assert (tmp_path / "model.zip").exists()


@pytest.mark.skip(reason="bmz")
def test_train_array_3d(tmp_path: Path, minimum_n2v_configuration: dict):
"""Test that CAREamics can be trained on 3D arrays."""
# training data
Expand Down Expand Up @@ -237,7 +233,6 @@ def test_train_array_3d(tmp_path: Path, minimum_n2v_configuration: dict):
assert (tmp_path / "model.zip").exists()


@pytest.mark.skip(reason="bmz")
def test_train_tiff_files_in_memory_no_val(
tmp_path: Path, minimum_n2v_configuration: dict
):
Expand Down Expand Up @@ -278,7 +273,6 @@ def test_train_tiff_files_in_memory_no_val(
assert (tmp_path / "model.zip").exists()


@pytest.mark.skip(reason="bmz")
def test_train_tiff_files_in_memory(tmp_path: Path, minimum_n2v_configuration: dict):
"""Test that CAREamics can be trained with tiff files in memory."""
# training data
Expand Down Expand Up @@ -365,7 +359,6 @@ def test_train_tiff_files(tmp_path: Path, minimum_n2v_configuration: dict):
assert (tmp_path / "model.zip").exists()


@pytest.mark.skip(reason="bmz")
def test_train_array_supervised(tmp_path: Path, minimum_supervised_configuration: dict):
"""Test that CAREamics can be trained with arrays."""
# training data
Expand Down Expand Up @@ -408,7 +401,6 @@ def test_train_array_supervised(tmp_path: Path, minimum_supervised_configuration
assert (tmp_path / "model.zip").exists()


@pytest.mark.skip(reason="bmz")
def test_train_tiff_files_in_memory_supervised(
tmp_path: Path, minimum_supervised_configuration: dict
):
Expand Down Expand Up @@ -534,7 +526,6 @@ def test_train_tiff_files_supervised(
assert (tmp_path / "model.zip").exists()


@pytest.mark.skip(reason="bmz")
@pytest.mark.parametrize("samples", [1, 2, 4])
@pytest.mark.parametrize("batch_size", [1, 2])
def test_predict_on_array_tiled(
Expand Down Expand Up @@ -580,7 +571,6 @@ def test_predict_on_array_tiled(
assert (tmp_path / "model.zip").exists()


@pytest.mark.skip(reason="bmz")
@pytest.mark.parametrize("samples", [1, 2, 4])
@pytest.mark.parametrize("batch_size", [1, 2])
def test_predict_arrays_no_tiling(
Expand Down Expand Up @@ -703,7 +693,6 @@ def test_predict_tiled_channel(
)


@pytest.mark.skip(reason="bmz")
@pytest.mark.parametrize("tiled", [True, False])
@pytest.mark.parametrize("n_samples", [1, 2])
@pytest.mark.parametrize("batch_size", [1, 2])
Expand Down

0 comments on commit b5b40a6

Please sign in to comment.