Exemple #1
0
 def test_not_empty(self):
     kubos.utils.target.get_current_target = mock.MagicMock(
         return_value='target')
     kubos.main()
     arg_list = get_arg_list(
         kubos.utils.container.pass_through.call_args_list)
     self.assertTrue(self.test_command in arg_list)
Exemple #2
0
 def test_init(self):
     search_args = {'proj_name' : [self.test_arg],
                    'subcommand_name' : self.test_command}
     kubos.utils.container.pass_through = mock.MagicMock()
     kubos.main()
     arg_list  = get_arg_list(kubos.utils.container.pass_through.call_args_list)
     self.assertTrue(self.test_command in arg_list)
     self.assertTrue(self.test_arg in arg_list)
Exemple #3
0
 def test_init(self):
     search_args = {
         'proj_name': [self.test_arg],
         'subcommand_name': self.test_command
     }
     kubos.utils.container.pass_through = mock.MagicMock()
     kubos.main()
     arg_list = get_arg_list(
         kubos.utils.container.pass_through.call_args_list)
     self.assertTrue(self.test_command in arg_list)
     self.assertTrue(self.test_arg in arg_list)
Exemple #4
0
 def test_target(self):
     main()
     arg_list = get_arg_list(utils.container.pass_through.call_args_list)
     self.assertTrue(self.test_command in arg_list)
 def test_shrinkwrap(self):
     main()
     arg_list  = get_arg_list(utils.container.pass_through.call_args_list)
     self.assertTrue(self.test_command in arg_list)
 def test_lics(self):
     kubos.main()
     arg_list  = get_arg_list(kubos.utils.container.pass_through.call_args_list)
     self.assertTrue(self.test_command in arg_list)
Exemple #7
0
 def test_clean(self):
     kubos.main()
     arg_list = get_arg_list(
         kubos.utils.container.pass_through.call_args_list)
     self.assertTrue(self.test_command in arg_list)
Exemple #8
0
 def test_not_empty(self):
     kubos.utils.target.get_current_target = mock.MagicMock(return_value='target')
     kubos.main()
     arg_list  = get_arg_list(kubos.utils.container.pass_through.call_args_list)
     self.assertTrue(self.test_command in arg_list)
Exemple #9
0
 def test_list_with_target(self):
     target.get_current_target = mock.MagicMock(return_value='stm32f407-disco-gcc')
     kubos.main()
     arg_list = get_arg_list(kubos.utils.container.pass_through.call_args_list)
     self.assertTrue(self.test_command in arg_list)