Skip to content

Commit b29abbf

Browse files
committed
Tests: Handle rename of init_node
Signed-off-by: Dinesh Dutt <[email protected]>
1 parent 55af809 commit b29abbf

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

tests/unit/poller/worker/test_inventory.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ async def ready_inventory():
6565
"""
6666
inv = _init_inventory()
6767
with patch.multiple(Node, _init_ssh=get_async_task_mock(),
68-
init_node=get_async_task_mock()):
68+
_fetch_init_dev_data=get_async_task_mock()):
6969
await inv.build_inventory()
7070
return inv
7171

@@ -100,7 +100,7 @@ async def test_inventory_build():
100100
inv = _init_inventory()
101101

102102
with patch.multiple(Node, _init_ssh=get_async_task_mock(),
103-
init_node=get_async_task_mock()):
103+
_fetch_init_dev_data=get_async_task_mock()):
104104
nodes = await inv.build_inventory()
105105

106106
# Check if nodes are registered in the inventory

0 commit comments

Comments
 (0)