File tree Expand file tree Collapse file tree 1 file changed +4
-3
lines changed
readthedocs/proxito/tests Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -163,12 +163,11 @@ def setUp(self):
163
163
urlconf = 'subpath/to/$version/$language/$filename' # Flipped
164
164
)
165
165
166
- self .old_urlconf = get_urlconf ()
167
166
sys .modules ['fake_urlconf' ] = self .pip .proxito_urlconf
168
167
set_urlconf ('fake_urlconf' )
169
168
170
169
def tearDown (self ):
171
- set_urlconf (self . old_urlconf )
170
+ set_urlconf (None )
172
171
173
172
def test_proxied_api_methods (self ):
174
173
# This is mostly a unit test, but useful to make sure the below tests work
@@ -238,10 +237,12 @@ def setUp(self):
238
237
child = self .subproject ,
239
238
)
240
239
241
- self .old_urlconf = get_urlconf ()
242
240
sys .modules ['fake_urlconf' ] = self .pip .proxito_urlconf
243
241
set_urlconf ('fake_urlconf' )
244
242
243
+ def tearDown (self ):
244
+ set_urlconf (None )
245
+
245
246
def test_middleware_urlconf_subproject (self ):
246
247
resp = self .client .get ('/subpath/subproject/testing/en/foodex.html' , HTTP_HOST = self .domain )
247
248
self .assertEqual (resp .status_code , 200 )
You can’t perform that action at this time.
0 commit comments