Skip checking if docker is running for tests + more graceful test for filename

This commit is contained in:
Patrick Robertson
2025-03-26 23:03:48 +04:00
parent 95ea9fb231
commit e06b0c0585
2 changed files with 3 additions and 2 deletions

View File

@@ -142,6 +142,7 @@ def unpickle():
@pytest.fixture
def mock_binary_dependencies(mocker):
mocker.patch("subprocess.run").return_value = mocker.Mock(returncode=0)
mock_shutil_which = mocker.patch("shutil.which")
# Mock all binary dependencies as available
mock_shutil_which.return_value = "/usr/bin/fake_binary"