Cli: fix tests to not produce artifacts
@@ -27,6 +27,7 @@ def test_main_empty_argv():
with mock.patch("pynguin.cli.Pynguin") as generator_mock:
with mock.patch("pynguin.cli._create_argument_parser") as parser_mock:
with mock.patch("pynguin.cli._setup_logging"):
+ with mock.patch("pynguin.cli._setup_output_path"):
generator_mock.return_value.run.return_value = ReturnCode.OK
parser = MagicMock()
parser_mock.return_value = parser
@@ -38,6 +39,7 @@ def test_main_with_argv():
with mock.patch("pynguin.cli.Pynguin") as generator_mock:
with mock.patch("pynguin.cli._create_argument_parser") as parser_mock:
with mock.patch("pynguin.cli._setup_logging"):
+ with mock.patch("pynguin.cli._setup_output_path"):
generator_mock.return_value.run.return_value = ReturnCode.OK
parser = MagicMock()
parser_mock.return_value = parser
