forked from p15670423/monkey
UT: Removed unsed 'request' parameter
This commit is contained in:
parent
cf13481865
commit
da5d7b7357
|
@ -186,7 +186,6 @@ def test_upserts_node(
|
||||||
handler,
|
handler,
|
||||||
machine_repository: IMachineRepository,
|
machine_repository: IMachineRepository,
|
||||||
node_repository: INodeRepository,
|
node_repository: INodeRepository,
|
||||||
request,
|
|
||||||
):
|
):
|
||||||
machine_repository.get_machine_by_id = MagicMock(side_effect=machine_from_id)
|
machine_repository.get_machine_by_id = MagicMock(side_effect=machine_from_id)
|
||||||
machine_repository.get_machines_by_ip = MagicMock(return_value=[TARGET_MACHINE])
|
machine_repository.get_machines_by_ip = MagicMock(return_value=[TARGET_MACHINE])
|
||||||
|
@ -209,7 +208,6 @@ def test_node_not_upserted_if_no_matching_agent(
|
||||||
agent_repository: IAgentRepository,
|
agent_repository: IAgentRepository,
|
||||||
machine_repository: IMachineRepository,
|
machine_repository: IMachineRepository,
|
||||||
node_repository: INodeRepository,
|
node_repository: INodeRepository,
|
||||||
request,
|
|
||||||
):
|
):
|
||||||
agent_repository.get_agent_by_id = MagicMock(side_effect=UnknownRecordError)
|
agent_repository.get_agent_by_id = MagicMock(side_effect=UnknownRecordError)
|
||||||
machine_repository.get_machine_by_id = MagicMock(return_value=TARGET_MACHINE)
|
machine_repository.get_machine_by_id = MagicMock(return_value=TARGET_MACHINE)
|
||||||
|
@ -229,7 +227,6 @@ def test_node_not_upserted_if_machine_retrievalerror(
|
||||||
handler,
|
handler,
|
||||||
machine_repository: IMachineRepository,
|
machine_repository: IMachineRepository,
|
||||||
node_repository: INodeRepository,
|
node_repository: INodeRepository,
|
||||||
request,
|
|
||||||
machine_id,
|
machine_id,
|
||||||
):
|
):
|
||||||
machine_repository.get_machine_by_id = MagicMock(
|
machine_repository.get_machine_by_id = MagicMock(
|
||||||
|
@ -283,7 +280,6 @@ def test_node_not_upserted_if_machine_storageerror(
|
||||||
handler,
|
handler,
|
||||||
machine_repository: IMachineRepository,
|
machine_repository: IMachineRepository,
|
||||||
node_repository: INodeRepository,
|
node_repository: INodeRepository,
|
||||||
request,
|
|
||||||
):
|
):
|
||||||
if event == PING_SCAN_EVENT:
|
if event == PING_SCAN_EVENT:
|
||||||
target_machine = TARGET_MACHINE
|
target_machine = TARGET_MACHINE
|
||||||
|
@ -313,7 +309,6 @@ def test_failed_scan(
|
||||||
handler,
|
handler,
|
||||||
machine_repository: IMachineRepository,
|
machine_repository: IMachineRepository,
|
||||||
node_repository: INodeRepository,
|
node_repository: INodeRepository,
|
||||||
request,
|
|
||||||
):
|
):
|
||||||
machine_repository.upsert_machine = MagicMock(side_effect=StorageError)
|
machine_repository.upsert_machine = MagicMock(side_effect=StorageError)
|
||||||
machine_repository.get_machine_by_id = MagicMock(side_effect=machine_from_id)
|
machine_repository.get_machine_by_id = MagicMock(side_effect=machine_from_id)
|
||||||
|
|
Loading…
Reference in New Issue