We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 22dc83e commit 628004dCopy full SHA for 628004d
tests/switchmap_/poller/test_async_poll.py
@@ -32,7 +32,14 @@
32
33
@pytest.fixture
34
def mock_config_setup():
35
- """Set up mock configuration for tests."""
+ """Set up mock configuration for tests.
36
+
37
+ Args:
38
+ None
39
40
+ Returns:
41
+ MagicMock: Mock configuration instance with zones and subprocesses.
42
+ """
43
mock_config_instance = MagicMock()
44
mock_zone = MagicMock()
45
mock_zone.name = "zone1"
@@ -44,7 +51,14 @@ def mock_config_setup():
51
52
46
53
def mock_poll_meta():
47
- """Create a mock poll meta object."""
54
+ """Create a mock poll meta object.
55
56
57
58
59
60
+ _META: Mock poll meta object with zone, hostname, and config.
61
48
62
return _META(zone="zone1", hostname="device1", config=MagicMock())
49
63
50
64
0 commit comments