File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 22import sys
33import json
44
5- from django .test import Client , TestCase
5+ from django .test import Client
66from django .conf import settings
77from django .utils .importlib import import_module
88from django .db import models
1212
1313import debug # pyflakes:ignore
1414
15+ from ietf .utils .test_utils import TestCase
16+
1517OMITTED_APPS = (
1618 'ietf.secr.meetings' ,
1719 'ietf.secr.proceedings' ,
Original file line number Diff line number Diff line change 1818from django .template .defaulttags import URLNode
1919from django .template .loader import get_template
2020from django .templatetags .static import StaticNode
21- from django .test import TestCase
2221
2322import debug # pyflakes:ignore
2423
2524import ietf .urls
2625from ietf .utils .management .commands import pyflakes
2726from ietf .utils .mail import send_mail_text , send_mail_mime , outbox
2827from ietf .utils .test_data import make_test_data
29- from ietf .utils .test_runner import get_template_paths
28+ from ietf .utils .test_runner import get_template_paths , set_coverage_checking
29+ from ietf .utils .test_utils import TestCase
3030from ietf .group .models import Group
3131
3232skip_wiki_glue_testing = False
@@ -104,13 +104,13 @@ def get_callbacks(urllist):
104104
105105 return list (callbacks )
106106
107- debug .debug = True
108107class TemplateChecksTestCase (TestCase ):
109108
110109 paths = []
111110 templates = {}
112111
113112 def setUp (self ):
113+ set_coverage_checking (False )
114114 self .paths = list (get_template_paths ())
115115 self .paths .sort ()
116116 for path in self .paths :
@@ -120,6 +120,7 @@ def setUp(self):
120120 pass
121121
122122 def tearDown (self ):
123+ set_coverage_checking (True )
123124 pass
124125
125126 def test_parse_templates (self ):
Original file line number Diff line number Diff line change 44debug .debug = True
55
66from django .core .urlresolvers import reverse
7- from django .test import TestCase
87
98from tastypie .test import ResourceTestCaseMixin
109
1110from ietf .utils .test_data import make_test_data
11+ from ietf .utils .test_utils import TestCase
1212
1313class RestApi (ResourceTestCaseMixin , TestCase ):
1414 def list_recursively (self , resource , format ):
You can’t perform that action at this time.
0 commit comments