def test_step_implementer_config_defaults(self): defaults = Maven.step_implementer_config_defaults() expected_defaults = { 'fail-on-no-tests': True, 'pom-file': 'pom.xml', 'tls-verify': True } self.assertEqual(defaults, expected_defaults)
def test_defaults(self, mock_super_init): workflow_result = WorkflowResult() parent_work_dir_path = '/fake/path' config = {} Maven(workflow_result=workflow_result, parent_work_dir_path=parent_work_dir_path, config=config) mock_super_init.assert_called_once_with( workflow_result=workflow_result, parent_work_dir_path=parent_work_dir_path, config=config, environment=None)
def test__required_config_or_result_keys(self): required_keys = Maven._required_config_or_result_keys() expected_required_keys = ['fail-on-no-tests', 'pom-file'] self.assertEqual(required_keys, expected_required_keys)