We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent da0b18f commit eb9db6dCopy full SHA for eb9db6d
template_profiler_panel/tests/test_template.py
@@ -4,6 +4,8 @@
4
import unittest
5
import os
6
7
+os.environ['DJANGO_SETTINGS_MODULE'] = 'template_profiler_panel.tests.dummy_settings'
8
+
9
try:
10
from mock import MagicMock
11
except ImportError:
@@ -14,9 +16,6 @@
14
16
15
17
from template_profiler_panel.panels.template import TemplateProfilerPanel, template_rendered
18
-os.environ['DJANGO_SETTINGS_MODULE'] = 'template_profiler_panel.tests.dummy_settings'
-application = get_wsgi_application()
19
-
20
21
class TemplateProfilerPanelTestCase(unittest.TestCase):
22
def setUp(self):
@@ -68,5 +67,6 @@ def test_template(self):
68
67
69
70
if __name__ == '__main__':
+ application = get_wsgi_application()
71
unittest.main()
72
0 commit comments