Skip to content

Commit f978f3e

Browse files
committed
fixing failing test
1 parent 3bc1a77 commit f978f3e

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

ellar_django/module.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,12 +22,12 @@ class DjangoModule(IModuleSetup):
2222
@classmethod
2323
def setup(cls, settings_module: str, path_prefix: str = "/dj") -> "DynamicModule":
2424
os.environ.setdefault("DJANGO_SETTINGS_MODULE", settings_module)
25-
ModuleRouterBuilder.build(_router)
25+
_router_as_mount = ModuleRouterBuilder.build(_router)
2626

2727
mount = Mount(
2828
path_prefix,
2929
routes=[
30-
_router, # type:ignore[list-item]
30+
_router_as_mount,
3131
Mount("/", app=get_asgi_application()),
3232
],
3333
)

requirements-tests.txt

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
autoflake
22
mypy == 1.8.0
33
pytest >=7.1.3,<9.0.0
4-
pytest-asyncio
4+
pytest-asyncio==0.20.3
55
pytest-cov >=2.12.0,<5.0.0
6+
pytest-django
67
ruff ==0.3.0

0 commit comments

Comments
 (0)