Skip to content

Commit e00577c

Browse files
committed
Test that @Inject is recognisable by inspect.isfunction
1 parent fb7018c commit e00577c

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

Diff for: tests/unit/wiring/test_introspection_py36.py

+7
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,13 @@
66
from dependency_injector.wiring import inject
77

88

9+
def test_isfunction():
10+
@inject
11+
def foo(): ...
12+
13+
assert inspect.isfunction(foo)
14+
15+
916
def test_asyncio_iscoroutinefunction():
1017
@inject
1118
async def foo():

0 commit comments

Comments
 (0)