We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e3f5250 commit e92efadCopy full SHA for e92efad
pytest_asyncio/plugin.py
@@ -481,9 +481,11 @@ class AsyncHypothesisTest(PytestAsyncioFunction):
481
@staticmethod
482
def _can_substitute(item: Function) -> bool:
483
func = item.obj
484
- return getattr(
485
- func, "is_hypothesis_test", False
486
- ) and asyncio.iscoroutinefunction(func.hypothesis.inner_test)
+ return (
+ getattr(func, "is_hypothesis_test", False) # type: ignore[return-value]
+ and getattr(func, "hypothesis", None)
487
+ and asyncio.iscoroutinefunction(func.hypothesis.inner_test)
488
+ )
489
490
def runtest(self) -> None:
491
self.obj.hypothesis.inner_test = wrap_in_sync(
0 commit comments