Skip to content

Commit

Permalink
updated tests
Browse files Browse the repository at this point in the history
  • Loading branch information
mese79 committed Oct 10, 2024
1 parent 14af2b8 commit ff18206
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 10 deletions.
4 changes: 2 additions & 2 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -10,12 +10,12 @@ markers = [


[tool.black]
line-length = 88
line-length = 90
target-version = ['py38', 'py39', 'py310']


[tool.ruff]
line-length = 88
line-length = 90
select = [
"E", "F", "W", #flake8
"UP", # pyupgrade
Expand Down
8 changes: 4 additions & 4 deletions tests/model_adapter_tests/test_dino_adapter.py
Original file line number Diff line number Diff line change
Expand Up @@ -61,10 +61,10 @@ def test_mock_adapter(test_patch: np.ndarray):
@pytest.mark.parametrize(
"test_image, expected_output_shape, expected_slices",
[
(np.ones((256, 256)), (121, 28, 28, 384), 1), # 2D
(np.ones((256, 256, 3)), (121, 28, 28, 384), 1), # 2D RGB
(np.ones((2, 256, 256)), (121, 28, 28, 384), 2), # 3D
(np.ones((2, 256, 256, 3)), (121, 28, 28, 384), 2), # 3D RGB
(np.ones((256, 256)), (49, 42, 42, 384), 1), # 2D
(np.ones((256, 256, 3)), (49, 42, 42, 384), 1), # 2D RGB
(np.ones((2, 256, 256)), (49, 42, 42, 384), 2), # 3D
(np.ones((2, 256, 256, 3)), (49, 42, 42, 384), 2), # 3D RGB
],
)
def test_dino_embedding_extraction(
Expand Down
8 changes: 4 additions & 4 deletions tests/model_adapter_tests/test_mobilesam_adapter.py
Original file line number Diff line number Diff line change
Expand Up @@ -68,10 +68,10 @@ def test_mock_adapter(test_patch: np.ndarray):
@pytest.mark.parametrize(
"test_image, expected_output_shape, expected_slices",
[
(np.ones((256, 256)), (25, 64, 64, 320), 1), # 2D
(np.ones((256, 256, 3)), (25, 64, 64, 320), 1), # 2D RGB
(np.ones((2, 256, 256)), (25, 64, 64, 320), 2), # 3D
(np.ones((2, 256, 256, 3)), (25, 64, 64, 320), 2) # 3D RGB
(np.ones((256, 256)), (9, 128, 128, 320), 1), # 2D
(np.ones((256, 256, 3)), (9, 128, 128, 320), 1), # 2D RGB
(np.ones((2, 256, 256)), (9, 128, 128, 320), 2), # 3D
(np.ones((2, 256, 256, 3)), (9, 128, 128, 320), 2) # 3D RGB
],
)
def test_mobilesam_embedding_extraction(
Expand Down

0 comments on commit ff18206

Please sign in to comment.