File tree Expand file tree Collapse file tree 2 files changed +6
-9
lines changed Expand file tree Collapse file tree 2 files changed +6
-9
lines changed Original file line number Diff line number Diff line change @@ -41,13 +41,6 @@ def samesite_invalid(settings):
41
41
settings .SESSION_COOKIE_SAMESITE = "Hello"
42
42
43
43
44
- @pytest .fixture
45
- def root_urlconf (settings ):
46
- """Set ROOT_WEBSOCKET_URLCONF."""
47
- settings .ROOT_WEBSOCKET_URLCONF = "__src.routings"
48
- return settings .ROOT_WEBSOCKET_URLCONF
49
-
50
-
51
44
@pytest .fixture (autouse = True )
52
45
def mock_modules ():
53
46
"""Save original modules for each test and clear a cache"""
Original file line number Diff line number Diff line change @@ -302,14 +302,16 @@ async def test_path_remaining():
302
302
303
303
304
304
@pytest .mark .asyncio
305
- async def test_url_router_nesting_by_include (root_urlconf ):
305
+ async def test_url_router_nesting_by_include ():
306
306
"""
307
307
Tests that nested URLRouters is constructed by include function.
308
308
"""
309
309
import sys
310
310
from django .urls import include
311
311
from django .urls import reverse as django_reverse
312
312
313
+ root_urlconf = "__src.routings"
314
+
313
315
test_app = MockApplication (return_value = 1 )
314
316
315
317
# mocking the universe module following the directory structure;
@@ -442,14 +444,16 @@ async def test_url_router_nesting_by_include(root_urlconf):
442
444
443
445
444
446
@pytest .mark .asyncio
445
- async def test_url_router_deep_nesting_by_include (root_urlconf ):
447
+ async def test_url_router_deep_nesting_by_include ():
446
448
"""
447
449
Tests that deep nested URLRouters is constructed by include function.
448
450
"""
449
451
import sys
450
452
from django .urls import include
451
453
from django .urls import reverse as django_reverse
452
454
455
+ root_urlconf = "__src.routings"
456
+
453
457
test_app = MockApplication (return_value = 1 )
454
458
455
459
# mocking the universe module following the directory structure;
You can’t perform that action at this time.
0 commit comments