Skip to content

Commit

Permalink
fixup! Move container-specific method from base class
Browse files Browse the repository at this point in the history
  • Loading branch information
apyrgio committed Dec 2, 2024
1 parent 58d48d3 commit d355c90
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions tests/gui/test_main_window.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@
from dangerzone.gui import main_window as main_window_module
from dangerzone.gui import updater as updater_module
from dangerzone.gui.logic import DangerzoneGui
from dangerzone.isolation_provider.dummy import Dummy

# import Pyside related objects from here to avoid duplicating import logic.
from dangerzone.gui.main_window import (
Expand Down Expand Up @@ -510,9 +511,9 @@ def test_not_available_container_tech_exception(
) -> None:
# Setup
mock_app = mocker.MagicMock()
dummy = mocker.MagicMock()

dummy.is_runtime_available.side_effect = NotAvailableContainerTechException(
dummy = Dummy()
fn = mocker.patch.object(dummy, "is_runtime_available")
fn.side_effect = NotAvailableContainerTechException(
"podman", "podman image ls logs"
)

Expand Down

0 comments on commit d355c90

Please sign in to comment.