-
-
Notifications
You must be signed in to change notification settings - Fork 151
Open
Labels
Description
def test_icf_sync(mocker):
func = mocker.stub('func')
assert not inspect.iscoroutinefunction(func)
def test_icf_async(mocker):
func = mocker.async_stub('func')
assert inspect.iscoroutinefunction(func)
Expected: mocker.stub() returns something that doesn't resemble a coroutine.
Observed: mocker.stub() is detected as a coroutine.