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.4.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.4-py3-none-any.whl (13.0 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: alt_pytest_asyncio-0.9.4.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.4.tar.gz
Algorithm Hash digest
SHA256 967de95aa5ce93c7698d30825a3bb18f6cfcc87cb698bfbb62c76317d499f214
MD5 99ee2a8a77ed9d1c63bc00a9a174c366
BLAKE2b-256 6a3d30ec1b41b78e409c0812a6fc3124bc1135c333b3b29c872af79d9a053fff

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for alt_pytest_asyncio-0.9.4-py3-none-any.whl
Algorithm Hash digest
SHA256 5e1780eb8d8db397e535f7a6028b3529cd0bc551105009e779dfbf6e0d1938a0
MD5 73422db594beb36847c16e7e07179fdb
BLAKE2b-256 9e294b573c36b01417ffa2a2d8d5b6d233ba6ff819016f0698a1b0176cd30954

See more details on using hashes here.

Provenance

The following attestation bundles were made for alt_pytest_asyncio-0.9.4-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