Skip to content

Commit

Permalink
Merge pull request #42 from BrainLesion/41-fix-duplicate-test-name
Browse files Browse the repository at this point in the history
41 fix duplicate test name
  • Loading branch information
neuronflow authored Oct 29, 2024
2 parents 3153cf3 + cb5191b commit 4e2d4c5
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 85 deletions.
83 changes: 0 additions & 83 deletions run.py

This file was deleted.

4 changes: 2 additions & 2 deletions tests/core/test_docker.py
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,7 @@ def test_ensure_image(self, MockPull, MockList):
MockPull.assert_called_once_with("test-image:latest", stream=True, decode=True)

@patch("subprocess.run")
def test_is_cuda_available(self, MockRun):
def test_is_cuda_available_ok(self, MockRun):
MockRun.return_value = None
self.assertTrue(_is_cuda_available())
MockRun.assert_called_once_with(
Expand All @@ -124,7 +124,7 @@ def test_is_cuda_available(self, MockRun):
)

@patch("subprocess.run")
def test_is_cuda_available(self, MockRun):
def test_is_cuda_available_fail(self, MockRun):
MockRun.side_effect = Exception()
self.assertFalse(_is_cuda_available())
MockRun.assert_called_once_with(
Expand Down

0 comments on commit 4e2d4c5

Please sign in to comment.