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