Esempio n. 1
0
 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()
Esempio n. 2
0
 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()
Esempio n. 3
0
 def test_create_comand(self, create_pipeline):
     noenvcli.run_from_command_line()
     create_pipeline.assert_called_with(path="foo")
Esempio n. 4
0
 def test_create_comand(self, create_pipeline):
     noenvcli.run_from_command_line()
     create_pipeline.assert_called_with(path="foo")