mirror of
https://github.com/ets-labs/python-dependency-injector.git
synced 2025-07-04 12:23:14 +03:00
Test that @inject is recognisable by inspect.isfunction
This commit is contained in:
parent
fb7018cb78
commit
e00577c8a4
|
@ -6,6 +6,13 @@ import inspect
|
||||||
from dependency_injector.wiring import inject
|
from dependency_injector.wiring import inject
|
||||||
|
|
||||||
|
|
||||||
|
def test_isfunction():
|
||||||
|
@inject
|
||||||
|
def foo(): ...
|
||||||
|
|
||||||
|
assert inspect.isfunction(foo)
|
||||||
|
|
||||||
|
|
||||||
def test_asyncio_iscoroutinefunction():
|
def test_asyncio_iscoroutinefunction():
|
||||||
@inject
|
@inject
|
||||||
async def foo():
|
async def foo():
|
||||||
|
|
Loading…
Reference in New Issue
Block a user