コード例 #1
0
ファイル: testcases.py プロジェクト: timothyclemans/djangocg
 def _urlconf_teardown(self):
     if hasattr(self, '_old_root_urlconf'):
         settings.ROOT_URLCONF = self._old_root_urlconf
         clear_url_caches()
コード例 #2
0
ファイル: tests.py プロジェクト: timothyclemans/djangocg
 def tearDown(self):
     # Make sure we will leave an empty cache for other testcases.
     clear_url_caches()
コード例 #3
0
ファイル: testcases.py プロジェクト: timothyclemans/djangocg
 def _urlconf_setup(self):
     if hasattr(self, 'urls'):
         self._old_root_urlconf = settings.ROOT_URLCONF
         settings.ROOT_URLCONF = self.urls
         clear_url_caches()
コード例 #4
0
ファイル: tests.py プロジェクト: timothyclemans/djangocg
 def setUp(self):
     # Make sure the cache is empty before we are doing our tests.
     clear_url_caches()