From 40ab3c949f8f06a4ee1330c34e772c3ab925e0ae Mon Sep 17 00:00:00 2001 From: Henrik Levkowetz Date: Sat, 6 Jul 2019 17:27:49 +0000 Subject: [PATCH] Added missing code to skip coverage measurement for skippable tests. - Legacy-Id: 16406 --- ietf/meeting/tests_views.py | 1 + ietf/utils/tests.py | 2 ++ 2 files changed, 3 insertions(+) diff --git a/ietf/meeting/tests_views.py b/ietf/meeting/tests_views.py index bf01e458b..4f4c27709 100644 --- a/ietf/meeting/tests_views.py +++ b/ietf/meeting/tests_views.py @@ -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') diff --git a/ietf/utils/tests.py b/ietf/utils/tests.py index 8be182604..3f4f255c1 100644 --- a/ietf/utils/tests.py +++ b/ietf/utils/tests.py @@ -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']: