Skip to main content

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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

alt_pytest_asyncio-0.9.3.tar.gz (8.9 kB view details)

Uploaded Source

Built Distribution

alt_pytest_asyncio-0.9.3-py3-none-any.whl (12.9 kB view details)

Uploaded Python 3

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

Hashes for alt_pytest_asyncio-0.9.3.tar.gz
Algorithm Hash digest
SHA256 9046b1bb3369bb437e702576a36109b0416448df6c792df2af0332d6c10b0450
MD5 dc7fee5cfa0320246436a8d0ba8b7f3a
BLAKE2b-256 a28e34b42143524ba40496c5eebb3fc397379db832cb4892aa0de2ceff02a863

See more details on using hashes here.

Provenance

The following attestation bundles were made for alt_pytest_asyncio-0.9.3.tar.gz:

Publisher: release.yml on delfick/alt-pytest-asyncio

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file alt_pytest_asyncio-0.9.3-py3-none-any.whl.

File metadata

File hashes

Hashes for alt_pytest_asyncio-0.9.3-py3-none-any.whl
Algorithm Hash digest
SHA256 519b8068a36603dea0bb434d35f36bfd1397b6aaa18520df6af4be1555540109
MD5 5ea8ca93229ce3fb73ea8c377d67269b
BLAKE2b-256 36f292d1ff2c33698d8cddbe82df3cc1fdd5931e524561d09ea7fb90c5fb33b6

See more details on using hashes here.

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

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page