def test_stack_trace_option(self, *args): with mock.patch("sys.argv", new=["test", "--stacktrace", "create", "foo"]): with self.assertRaises(Exception): noenvcli.run_from_command_line() with mock.patch("sys.argv", new=["test", "create", "foo"]): noenvcli.run_from_command_line()
def test_create_comand(self, create_pipeline): noenvcli.run_from_command_line() create_pipeline.assert_called_with(path="foo")