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
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
6b832366329ec62cff81b5999f6ace218b41c787a4e21452dd5f1577a9d91a58
|
|
| MD5 |
74fd8625d7cb3da3faa430864ac7fb90
|
|
| BLAKE2b-256 |
7334762304b9065d5882c2bdd062b712d4117acd8fb6cbdfaee97f5afb053298
|
Provenance
The following attestation bundles were made for pytest_nowtempmail-0.1.2.tar.gz:
Publisher:
python-release.yml on nowtempmail/nowtempmail-python
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
pytest_nowtempmail-0.1.2.tar.gz -
Subject digest:
6b832366329ec62cff81b5999f6ace218b41c787a4e21452dd5f1577a9d91a58 - Sigstore transparency entry: 2653538810
- Sigstore integration time:
-
Permalink:
nowtempmail/nowtempmail-python@8e94b3d56b1eaeb0450c568e8f254dcd413898f3 -
Branch / Tag:
refs/tags/v0.1.2 - Owner: https://github.com/nowtempmail
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
python-release.yml@8e94b3d56b1eaeb0450c568e8f254dcd413898f3 -
Trigger Event:
push
-
Statement type:
File details
Details for the file pytest_nowtempmail-0.1.2-py3-none-any.whl.
File metadata
- Download URL: pytest_nowtempmail-0.1.2-py3-none-any.whl
- Upload date:
- Size: 3.7 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via:
twine/7.0.0 CPython/3.13.14
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
e59dc20c18de55ceeaa2822e7726e767244e7be4a1f32a0d92e440619e4b41e3
|
|
| MD5 |
05aac948e9ba6af6d5bf4b3b08016ffe
|
|
| BLAKE2b-256 |
1ce968839aa18aff7053ca68570280e0d3296890648ef397288dc4bea94915a2
|
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
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
pytest_nowtempmail-0.1.2-py3-none-any.whl -
Subject digest:
e59dc20c18de55ceeaa2822e7726e767244e7be4a1f32a0d92e440619e4b41e3 - Sigstore transparency entry: 2653538949
- Sigstore integration time:
-
Permalink:
nowtempmail/nowtempmail-python@8e94b3d56b1eaeb0450c568e8f254dcd413898f3 -
Branch / Tag:
refs/tags/v0.1.2 - Owner: https://github.com/nowtempmail
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
python-release.yml@8e94b3d56b1eaeb0450c568e8f254dcd413898f3 -
Trigger Event:
push
-
Statement type: