Skip to content

Commit

Permalink
remove unused mocks
Browse files Browse the repository at this point in the history
  • Loading branch information
fohrloop committed Apr 20, 2024
1 parent 567f9a9 commit 8dab06f
Showing 1 changed file with 0 additions and 18 deletions.
18 changes: 0 additions & 18 deletions tests/unit/test_core/test_mode/test_mode.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,24 +25,6 @@
from typing import List, Type


def mocks_for_test_mode():
# Setup test
mocks = Mock()

mocks.dbus_adapter_cls = Mock(spec_set=type(DBusAdapter))
mocks.dbus_adapter_cls.return_value = Mock(spec_set=DBusAdapter)

mocks.methods_priority = Mock()

result = Mock(spec_set=ActivationResult)
methods = [Mock() for _ in range(3)]

# Record calls in a "mock manager"
mocks.activation_result = result
mocks.methods = methods
return mocks


@pytest.fixture
def dbus_adapter_cls():
class TestDbusAdapter(DBusAdapter): ...
Expand Down

0 comments on commit 8dab06f

Please sign in to comment.