Skip to content

Commit

Permalink
Delete Unit test!
Browse files Browse the repository at this point in the history
  • Loading branch information
benyissa committed Dec 2, 2024
1 parent 536ffc8 commit 8f6d729
Showing 1 changed file with 0 additions and 22 deletions.
22 changes: 0 additions & 22 deletions tests/cli/scan/run/run_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -391,28 +391,6 @@ def testOstorlabScanRunCLI_whenWrongArgsFormatProvided_showsErrorMessage() -> No
)


def testOstorlabScanRunCLI_whenAgentArgContainsThreeColons_doesNotCrash(
mocker: plugin.MockerFixture,
) -> None:
mocker.patch("ostorlab.runtimes.local.LocalRuntime.__init__", return_value=None)
mocker.patch("ostorlab.runtimes.local.LocalRuntime.can_run", return_value=True)
runner = CliRunner()

result = runner.invoke(
rootcli.rootcli,
[
"scan",
"run",
"--agent=agent/ostorlab/nmap",
"--arg=proxy:arg_value:http://localhost:3000/",
"ip",
"8.8.8.8",
],
)

assert result.output == ""


@pytest.mark.parametrize(
"invalid_agent_key", ["/nmap", "@agent/ostorlab/nmap/", "agent/ostorlab/nmap/"]
)
Expand Down

0 comments on commit 8f6d729

Please sign in to comment.