-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
descope fixtures from module to function
Due to changes in pytest-asyncio 0.23, the event loop used by fixtures/tests with different scopes is not the same. For example, a fixture declared with "module" scope will use a different event loop to tests, which run with the "function" scope's event loop. This causes many tests to fail. Despite being less efficient, the prudent way forward for now is to modify the fixtures to be recreated for each test. Astacus' tests are very fast, so this does not slow down CI runs very much at all.
- Loading branch information
Showing
3 changed files
with
9 additions
and
19 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters