def test_empty_commands(self): """ Given: an integration with no commands When: running validate on integration with no command. Then: Validate it's valid. """ current = {"script": {"commands": None}} structure = mock_structure("", current) validator = IntegrationValidator(structure) validator.current_file = current assert validator.is_valid_default_arguments() is True
def test_is_valid_default_arguments(self, current, answer): current = {"script": {"commands": current}} structure = mock_structure("", current) validator = IntegrationValidator(structure) validator.current_file = current assert validator.is_valid_default_arguments() is answer