Skip to content

Commit 8571e14

Browse files
committed
🐛 Fix deepsource bugs
1 parent 648d02a commit 8571e14

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
lines changed

tests/engines/test_engine_abc.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -355,7 +355,7 @@ def test_engine_run() -> NoReturn:
355355

356356
def test_engine_run_with_verbose() -> NoReturn:
357357
"""Test engine run with verbose."""
358-
"""Run pytest with `-rP` option to view progress bar on the captured stderr call"""
358+
# Run pytest with `-rP` option to view progress bar on the captured stderr call.
359359

360360
eng = TestEngineABC(model="alexnet-kather100k", verbose=True)
361361
out = eng.run(
@@ -401,7 +401,7 @@ def test_patch_pred_zarr_store(tmp_path: pytest.TempPathFactory) -> NoReturn:
401401
)
402402
assert Path.exists(out), "Zarr output file does not exist"
403403

404-
""" test custom zarr output file name"""
404+
# Test custom zarr output file name
405405
eng = TestEngineABC(model="alexnet-kather100k")
406406
out = eng.run(
407407
images=np.zeros((10, 224, 224, 3), dtype=np.uint8),

tests/models/test_models_abc.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,6 @@ def forward(self: Proto) -> None:
7070
# skipcq
7171
def infer_batch() -> None:
7272
"""Define infer batch."""
73-
pass # base class definition pass # noqa: PIE790
7473

7574

7675
@pytest.mark.skipif(

0 commit comments

Comments
 (0)