I am trying to test fixtures that I have setup in my testing repository.
In this instance, I have fixtures that are making use the pytest-asyncio plugin. And the test functions are defined in separate modules.
Th first test is able to run successful, but the second test fails to hook on to the plugin, the second time around. This is regardless of test order; the second test always fail to use the plugin.
I understand that every new test executed by pytester invalidates the import cache before running the test, but I don’t believe that is the problem here.
Any thoughts or advice will help.
I tried explicitly adding the plugin to the runpytest call, but this does little for the pytester environment to recognize the presence of the plugin.
Garry Ingles is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.