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.5.tar.gz (9.0 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

alt_pytest_asyncio-0.9.5-py3-none-any.whl (13.1 kB view details)

Uploaded Python 3

File details

Details for the file alt_pytest_asyncio-0.9.5.tar.gz.

File metadata

  • Download URL: alt_pytest_asyncio-0.9.5.tar.gz
  • Upload date:
  • Size: 9.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for alt_pytest_asyncio-0.9.5.tar.gz
Algorithm Hash digest
SHA256 8171fbf00fbb4d763d7ded77e343dc443bd111901b1f5654ad271cf94a74c248
MD5 80506ce5d3c561353500fbc84a4ed450
BLAKE2b-256 3852920ab736636580ea40ce47d1ba98a027e273a32e4be144eed2f928d9ac41

See more details on using hashes here.

Provenance

The following attestation bundles were made for alt_pytest_asyncio-0.9.5.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.5-py3-none-any.whl.

File metadata

File hashes

Hashes for alt_pytest_asyncio-0.9.5-py3-none-any.whl
Algorithm Hash digest
SHA256 fa525bce134ca0b2815d60c2912e9770f28b955e905f4cbdb1a3602beacee76d
MD5 8e2adc197709839e4f1f31aa24b938f3
BLAKE2b-256 3d2a46da94183db505f45a18f1c2dd5d78aa6280ed99e1f4cf4e89b69bd9eb5a

See more details on using hashes here.

Provenance

The following attestation bundles were made for alt_pytest_asyncio-0.9.5-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 Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page