79369615

Date: 2025-01-19 19:31:49
Score: 1
Natty:
Report link

Async fixtures in pytest need to be marked with @pytest_asyncio.fixture so that they get awaited before passing to the test. The error message tells you that you're getting a coroutine passed into your test method rather than the results of the coroutine being executed.

Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Single line (0.5):
  • Low reputation (0.5):
Posted by: Andrew Certain