From a79e812ddb5a74a6b685fffeb98be854d9cc0960 Mon Sep 17 00:00:00 2001 From: Nils Philippsen Date: Sep 17 2018 09:59:31 +0000 Subject: test for missing summary and description --- diff --git a/tests/test_modulemd_linter.py b/tests/test_modulemd_linter.py index 133fa52..ea8c9e5 100644 --- a/tests/test_modulemd_linter.py +++ b/tests/test_modulemd_linter.py @@ -124,6 +124,16 @@ class _TestModuleMDVersionLinter(_TestModuleMDLinter): """Test that known to be good documents pass.""" self.lint(self.get_yaml_tree_copy()) + @linting_fails + def test_summary_missing(self, tree): + """Test that a document without summary gets flagged.""" + del tree['data']['summary'] + + @linting_fails + def test_description_missing(self, tree): + """Test that a document without description gets flagged.""" + del tree['data']['description'] + class TestModuleMDV1Linter(_TestModuleMDVersionLinter): """Test modulemd v1 structures.