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

Uploaded Python 3

File details

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

File metadata

  • Download URL: pytest_nowtempmail-0.1.3.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.3.tar.gz
Algorithm Hash digest
SHA256 9f0e10418ad260e5b3b6bf2985cd56ce935ff5afab3005124002648c73576834
MD5 8554fee4d511c591bea2f98bc8c136a4
BLAKE2b-256 b20b668010086cf06a7518dd502c9e3b06805f56a862def2a629595fcb134fcf

See more details on using hashes here.

Provenance

The following attestation bundles were made for pytest_nowtempmail-0.1.3.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.3-py3-none-any.whl.

File metadata

File hashes

Hashes for pytest_nowtempmail-0.1.3-py3-none-any.whl
Algorithm Hash digest
SHA256 d53544ecb0ff5dbc216cd3213eea6fb3e2a79869bdb29439d18bfa89ebf6cbc6
MD5 1a56a011eee205e740eaf137d92ecc30
BLAKE2b-256 dd577872cf4ac3d9a42dbfd8c168d43e6cf906c534e66aef8bfbf93c45638bd9

See more details on using hashes here.

Provenance

The following attestation bundles were made for pytest_nowtempmail-0.1.3-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

This release

0.1.3 This release

2 files

0.1.2

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