Skip to main content

pytest-nowtempmail

pytest fixtures for disposable inboxes and the OTP codes that land in them.

pip install pytest-nowtempmail
export NTM_API_KEY="ntm_live_..."     # get one at https://nowtempmail.com/developers
def test_signup(page, ntm_inbox):
    page.goto("/signup")
    page.fill("#email", ntm_inbox.address)
    page.click("text=Create account")
    page.fill("#code", ntm_inbox.wait_for_code())  # only this test's mail

Verification codes are extracted server-side, so there is no regex to write and no message body is transferred to find one.

Fixture Scope What it is
ntm_inbox session One mailbox shared by every test, with per-test watermarking so waits stay isolated. Start here.
ntm_fresh_inbox function A mailbox of this test's own. Spends daily quota that is never refunded.
ntm_client session The underlying NowTempMail client.
ntm_options session Resolved configuration, for overriding in a conftest.

This package is a thin shim: it declares the pytest11 entry point and depends on nowtempmail, where the fixtures actually live. Installing it gets you both.

Full documentation — the sharing and quota model, watermarking and its one-second limit, what does and does not reach your CI report, and the client API — is in the nowtempmail README. It is not duplicated here, because two copies of the same guidance drift and the wrong one is always the one you read.

MIT licensed.

Download files

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

Source Distribution

pytest_nowtempmail-0.1.2.tar.gz (3.2 kB view details)

Uploaded Source

Built Distribution

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

pytest_nowtempmail-0.1.2-py3-none-any.whl (3.7 kB view details)

Uploaded Python 3

File details

Details for the file pytest_nowtempmail-0.1.2.tar.gz.

File metadata

  • Download URL: pytest_nowtempmail-0.1.2.tar.gz
  • Upload date:
  • Size: 3.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/7.0.0 CPython/3.13.14

File hashes

Hashes for pytest_nowtempmail-0.1.2.tar.gz
Algorithm Hash digest
SHA256 6b832366329ec62cff81b5999f6ace218b41c787a4e21452dd5f1577a9d91a58
MD5 74fd8625d7cb3da3faa430864ac7fb90
BLAKE2b-256 7334762304b9065d5882c2bdd062b712d4117acd8fb6cbdfaee97f5afb053298

See more details on using hashes here.

Provenance

The following attestation bundles were made for pytest_nowtempmail-0.1.2.tar.gz:

Publisher: python-release.yml on nowtempmail/nowtempmail-python

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

File details

Details for the file pytest_nowtempmail-0.1.2-py3-none-any.whl.

File metadata

File hashes

Hashes for pytest_nowtempmail-0.1.2-py3-none-any.whl
Algorithm Hash digest
SHA256 e59dc20c18de55ceeaa2822e7726e767244e7be4a1f32a0d92e440619e4b41e3
MD5 05aac948e9ba6af6d5bf4b3b08016ffe
BLAKE2b-256 1ce968839aa18aff7053ca68570280e0d3296890648ef397288dc4bea94915a2

See more details on using hashes here.

Provenance

The following attestation bundles were made for pytest_nowtempmail-0.1.2-py3-none-any.whl:

Publisher: python-release.yml on nowtempmail/nowtempmail-python

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

Release history Release notifications | RSS feed

0.1.3

2 files

This release

0.1.2 This release

2 files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page