-
Notifications
You must be signed in to change notification settings - Fork 16
Marked Async Tests Are Skipped #1240
Comments
You used to have to mark with @pytest.mark.asyncio, but the When I tested initially I made sure none were skipped. Can you point me to somewhere it is skipping and I will look into it? |
I think I found what you are talking about. It seems to always be marked tests. I wonder if that is throwing something off. We could try the async decorator to see if it makes a difference. |
Yes, I had just noticed an https://github.com/ethyca/fidesops/runs/8139612947?check_suite_focus=true -- Docs: https://docs.pytest.org/en/stable/how-to/capture-warnings.html I think it will be a quick fix. |
It sounds like a bug in the plugin when they are marked something like
It's not going to hurt anything for us to mark them like you said so seems like that is the best solution. |
thanks for narrowing the cause down further, this makes sense |
Bug Description
Related to #1174
We recently made a lot of our tests async, and pytest is skipping all of them. The async tests are some of our more important tests that are often testing parts of the graph traversal or an end-to-end privacy request.
Steps to Reproduce
Run any async test and see that pytest skips.
Expected behavior
I think we can decorate all these tests with
@pytest.mark.asyncio
and they should run.Screenshots
If applicable, add screenshots to help explain your problem.
Environment
Additional context
Add any other context about the problem here.
The text was updated successfully, but these errors were encountered: