Use global template for unit tests

This commit is contained in:
James Page 2016-05-26 11:25:21 +01:00
parent 532486201d
commit 56dc7cbb81
1 changed files with 1 additions and 1 deletions

View File

@ -106,7 +106,7 @@ class TestTitles(testtools.TestCase):
releases = [x.split('/')[1] for x in glob.glob('specs/*/')]
self.assertTrue(len(releases), "Not able to find spec directories")
for release in releases:
with open("specs/%s-template.rst" % release) as f:
with open("specs/template.rst") as f:
template = f.read()
spec = docutils.core.publish_doctree(template)
template_titles = self._get_titles(spec)