From 19cd10c314a1d9d81e7640e4e801a64ef7d00611 Mon Sep 17 00:00:00 2001 From: Zane Bitter Date: Wed, 29 Aug 2018 15:48:39 -0400 Subject: [PATCH] Fix rocky template specs/rocky/rocky-template.rst should be a symlink, not a text file containing the path to the actual template. This fixes the tests, and also improves them to properly report errors when whole sections are missing. Change-Id: Ie95d45d134e8f332ecdecc687a68deb7af6c30c3 --- specs/rocky/rocky-template.rst | 2 +- tests/test_titles.py | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) mode change 100644 => 120000 specs/rocky/rocky-template.rst diff --git a/specs/rocky/rocky-template.rst b/specs/rocky/rocky-template.rst deleted file mode 100644 index 08b2aade..00000000 --- a/specs/rocky/rocky-template.rst +++ /dev/null @@ -1 +0,0 @@ -../templates/rocky-template.rst diff --git a/specs/rocky/rocky-template.rst b/specs/rocky/rocky-template.rst new file mode 120000 index 00000000..682137af --- /dev/null +++ b/specs/rocky/rocky-template.rst @@ -0,0 +1 @@ +../templates/rocky-template.rst \ No newline at end of file diff --git a/tests/test_titles.py b/tests/test_titles.py index 8a23714f..6e52ab84 100644 --- a/tests/test_titles.py +++ b/tests/test_titles.py @@ -73,6 +73,8 @@ class TestTitles(testscenarios.WithScenarios, testtools.TestCase): msgs.append("Extra sections: %s" % extra_sections) for section in expect.keys(): + if section not in actual: + continue missing_subsections = [x for x in expect[section] if x not in actual[section]] # extra subsections are allowed