-
-
Notifications
You must be signed in to change notification settings - Fork 147
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
We add parametrized fixtures for async connection classes: - 'asyncconnection_class' return either AsyncConnection or AnyIOConnection class; - 'any_aconn' uses asyncconnection_class and will thus build a connection of requested type. We also add an 'asyncio_backend' fixture for tests that are implemented using asyncio. Accordingly, async connections tests are now run with asyncio and trio backends as we alias 'aconn' fixture to 'any_aconn' in test_connection_async.py. The global 'pytestmark = pytest.mark.asyncio' is no longer needed as most test functions uses a fixture that depends on 'anyio_backend' which detects async functions. Only test_connect_(bad,)args() functions still need to be marked.
- Loading branch information
Showing
6 changed files
with
126 additions
and
37 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
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