Alternative pytest plugin to pytest-asyncio
Project description
This plugin allows you to have async pytest fixtures and tests.
This plugin only supports python 3.11 and above.
The code here is influenced by pytest-asyncio but with some differences:
Error tracebacks from are from your tests, rather than asyncio internals
There is only one loop for all of the tests
You can manage the lifecycle of the loop yourself outside of pytest by using this plugin with your own loop
No need to explicitly mark your tests as async. (pytest-asyncio requires you mark your async tests because it also supports other event loops like curio and trio)
Like pytest-asyncio it supports async tests, coroutine fixtures and async generator fixtures.
Full documentation can be found at https://alt-pytest-asyncio.readthedocs.io
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file alt_pytest_asyncio-0.9.3.tar.gz
.
File metadata
- Download URL: alt_pytest_asyncio-0.9.3.tar.gz
- Upload date:
- Size: 8.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.12.9
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 |
9046b1bb3369bb437e702576a36109b0416448df6c792df2af0332d6c10b0450
|
|
MD5 |
dc7fee5cfa0320246436a8d0ba8b7f3a
|
|
BLAKE2b-256 |
a28e34b42143524ba40496c5eebb3fc397379db832cb4892aa0de2ceff02a863
|
Provenance
The following attestation bundles were made for alt_pytest_asyncio-0.9.3.tar.gz
:
Publisher:
release.yml
on delfick/alt-pytest-asyncio
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1
-
Predicate type:
https://docs.pypi.org/attestations/publish/v1
-
Subject name:
alt_pytest_asyncio-0.9.3.tar.gz
-
Subject digest:
9046b1bb3369bb437e702576a36109b0416448df6c792df2af0332d6c10b0450
- Sigstore transparency entry: 196488406
- Sigstore integration time:
-
Permalink:
delfick/alt-pytest-asyncio@4b0add6bde2fb3ec1d7c4579d6fac7d394b698ad
-
Branch / Tag:
refs/heads/main
- Owner: https://github.com/delfick
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com
-
Runner Environment:
github-hosted
-
Publication workflow:
release.yml@4b0add6bde2fb3ec1d7c4579d6fac7d394b698ad
-
Trigger Event:
workflow_dispatch
-
Statement type:
File details
Details for the file alt_pytest_asyncio-0.9.3-py3-none-any.whl
.
File metadata
- Download URL: alt_pytest_asyncio-0.9.3-py3-none-any.whl
- Upload date:
- Size: 12.9 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.12.9
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 |
519b8068a36603dea0bb434d35f36bfd1397b6aaa18520df6af4be1555540109
|
|
MD5 |
5ea8ca93229ce3fb73ea8c377d67269b
|
|
BLAKE2b-256 |
36f292d1ff2c33698d8cddbe82df3cc1fdd5931e524561d09ea7fb90c5fb33b6
|
Provenance
The following attestation bundles were made for alt_pytest_asyncio-0.9.3-py3-none-any.whl
:
Publisher:
release.yml
on delfick/alt-pytest-asyncio
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1
-
Predicate type:
https://docs.pypi.org/attestations/publish/v1
-
Subject name:
alt_pytest_asyncio-0.9.3-py3-none-any.whl
-
Subject digest:
519b8068a36603dea0bb434d35f36bfd1397b6aaa18520df6af4be1555540109
- Sigstore transparency entry: 196488408
- Sigstore integration time:
-
Permalink:
delfick/alt-pytest-asyncio@4b0add6bde2fb3ec1d7c4579d6fac7d394b698ad
-
Branch / Tag:
refs/heads/main
- Owner: https://github.com/delfick
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com
-
Runner Environment:
github-hosted
-
Publication workflow:
release.yml@4b0add6bde2fb3ec1d7c4579d6fac7d394b698ad
-
Trigger Event:
workflow_dispatch
-
Statement type: