Metadata-Version: 2.5
Name: pytest-nowtempmail
Version: 0.1.2
Summary: pytest fixtures for disposable inboxes and the OTP codes that land in them.
Project-URL: Homepage, https://nowtempmail.com/developers
Project-URL: Source, https://github.com/nowtempmail/nowtempmail-python
Author: NowTempMail
License: MIT License
        
        Copyright (c) 2026 NowTempMail
        
        Permission is hereby granted, free of charge, to any person obtaining a copy
        of this software and associated documentation files (the "Software"), to deal
        in the Software without restriction, including without limitation the rights
        to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
        copies of the Software, and to permit persons to whom the Software is
        furnished to do so, subject to the following conditions:
        
        The above copyright notice and this permission notice shall be included in all
        copies or substantial portions of the Software.
        
        THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
        IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
        FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
        AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
        LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
        OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
        SOFTWARE.
License-File: LICENSE
Keywords: disposable-email,e2e,email,fixtures,otp,pytest,testing
Classifier: Development Status :: 4 - Beta
Classifier: Framework :: Pytest
Classifier: Intended Audience :: Developers
Classifier: License :: OSI Approved :: MIT License
Classifier: Operating System :: OS Independent
Classifier: Programming Language :: Python :: 3
Classifier: Topic :: Software Development :: Testing
Requires-Python: >=3.10
Requires-Dist: nowtempmail>=0.1.0
Requires-Dist: pytest>=8.0
Description-Content-Type: text/markdown

# pytest-nowtempmail

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

```bash
pip install pytest-nowtempmail
export NTM_API_KEY="ntm_live_..."     # get one at https://nowtempmail.com/developers
```

```python
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`](https://pypi.org/project/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](https://github.com/nowtempmail/nowtempmail-python#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.
