Closed Cito closed 3 months ago
Attention: Patch coverage is 0%
with 2 lines
in your changes missing coverage. Please review.
Project coverage is 91.50%. Comparing base (
a8b3d18
) to head (db7a1c6
). Report is 2 commits behind head on main.
Files | Patch % | Lines |
---|---|---|
pytest_asyncio/plugin.py | 0.00% | 1 Missing and 1 partial :warning: |
:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.
As this error is thrown at every unrecognized keyword argument, could it be improved to something more generic, please?
@MeggyCal What problem are you encountering and what improvement do you suggest to solve it?
Hi, I've been debugging https://github.com/redis/redis-py/issues/3339 lately. I find mark.asyncio accepts only a keyword argument 'scope'
cryptic at this point, it would be better to throw mark.asyncio: Unrecognized keyword argument: %s
or mark.asyncio does not accept positional arguments. Did you mean to use 'scope'?
depending on the context.
This PR implements error checking for the arguments of
mark.asyncio
.An ValueError with a helpful message is raised when unexpected arguments are passed.
This should fix issue #812.