aboutsummaryrefslogtreecommitdiffstats
path: root/tests/report_tests
diff options
context:
space:
mode:
Diffstat (limited to 'tests/report_tests')
-rw-r--r--tests/report_tests/basic_report_tests.py9
-rw-r--r--tests/report_tests/plugin_tests/collect_manual_tests.py4
2 files changed, 11 insertions, 2 deletions
diff --git a/tests/report_tests/basic_report_tests.py b/tests/report_tests/basic_report_tests.py
index f98d0f6e..c5d7d3ae 100644
--- a/tests/report_tests/basic_report_tests.py
+++ b/tests/report_tests/basic_report_tests.py
@@ -33,6 +33,15 @@ class NormalSoSReport(StageOneReportTest):
def test_free_symlink_created(self):
self.assertFileCollected('free')
+ def test_tag_summary_created(self):
+ self.assertTrue(
+ 'tag_summary' in self.manifest['components']['report'],
+ "No tag summary generated in report"
+ )
+ self.assertTrue(
+ isinstance(self.manifest['components']['report']['tag_summary'], dict),
+ "Tag summary malformed"
+ )
class LogLevelTest(StageOneReportTest):
"""
diff --git a/tests/report_tests/plugin_tests/collect_manual_tests.py b/tests/report_tests/plugin_tests/collect_manual_tests.py
index 7000d5e0..f63a074e 100644
--- a/tests/report_tests/plugin_tests/collect_manual_tests.py
+++ b/tests/report_tests/plugin_tests/collect_manual_tests.py
@@ -32,6 +32,6 @@ class CollectManualTest(StageOneReportTest):
def test_manifest_collections_correct(self):
pkgman = self.get_plugin_manifest('unpackaged')
- self.assertTrue(pkgman['collections']['unpackaged'])
+ self.assertTrue(any(c['name'] == 'unpackaged' for c in pkgman['collections']))
pyman = self.get_plugin_manifest('python')
- self.assertTrue(pyman['collections']['digests.json'])
+ self.assertTrue(any(c['name'] == 'digests.json' for c in pyman['collections']))