Skip to content

Commit

Permalink
Linter
Browse files Browse the repository at this point in the history
  • Loading branch information
elyousfi5 committed Jan 6, 2025
1 parent b839f56 commit f4c214e
Showing 1 changed file with 18 additions and 12 deletions.
30 changes: 18 additions & 12 deletions tests/cli/scan/run/run_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -576,18 +576,24 @@ def testScanRunCLI_whenTimeoutProvided_setsTrackerAgentTimeout(
== "scan_done_timeout_sec"
)
assert mock_start_agent.call_args[1].get("agent").args[0].value == 3600
assert any(
arg.name == "postscane_done_timeout_sec"
and arg.value == 0
and arg.type == "number"
for arg in mock_start_agent.call_args[1].get("agent").args
) is True
assert any(
arg.name == "scan_done_timeout_sec"
and arg.value == 3600
and arg.type == "number"
for arg in mock_start_agent.call_args[1].get("agent").args
) is True
assert (
any(
arg.name == "postscane_done_timeout_sec"
and arg.value == 0
and arg.type == "number"
for arg in mock_start_agent.call_args[1].get("agent").args
)
is True
)
assert (
any(
arg.name == "scan_done_timeout_sec"
and arg.value == 3600
and arg.type == "number"
for arg in mock_start_agent.call_args[1].get("agent").args
)
is True
)


def testScanRunCLI_whenNoTimeoutProvided_usesDefaultTimeout(
Expand Down

0 comments on commit f4c214e

Please sign in to comment.