Added missing code to skip coverage measurement for skippable tests.

- Legacy-Id: 16406
This commit is contained in:
Henrik Levkowetz 2019-07-06 17:27:49 +00:00
parent 442236e0ab
commit 40ab3c949f
2 changed files with 3 additions and 0 deletions

View file

@ -513,6 +513,7 @@ class MeetingTests(TestCase):
os.unlink(filename)
@skipIf(skip_pdf_tests, skip_message)
@skip_coverage
def test_session_draft_pdf(self):
session = SessionFactory(group__type_id='wg',meeting__type_id='ietf')
doc = DocumentFactory(type_id='draft')

View file

@ -283,6 +283,7 @@ class TestWikiGlueManagementCommand(TestCase):
# command through command line switches. We have to do it this way because the
# management command reads in its own copy of settings.py in its own python
# environment, so we can't modify it here.
set_coverage_checking(False)
self.wiki_dir_pattern = os.path.abspath('tmp-wiki-dir-root/%s')
if not os.path.exists(os.path.dirname(self.wiki_dir_pattern)):
os.mkdir(os.path.dirname(self.wiki_dir_pattern))
@ -293,6 +294,7 @@ class TestWikiGlueManagementCommand(TestCase):
def tearDown(self):
shutil.rmtree(os.path.dirname(self.wiki_dir_pattern))
shutil.rmtree(os.path.dirname(self.svn_dir_pattern))
set_coverage_checking(True)
def test_wiki_create_output(self):
for type in ['wg','rg','ag','area']: