Skip to main content

Proxy Mail QA for Python

Test inboxes for sign-up, login and password-reset tests in Python, with pytest and Selenium or Playwright. Make a test address with a realistic test person, sign up with it in your app, then wait for the code or link from the email.

pip install proxymail-qa

It uses only the standard library and runs on Python 3.9 or later.

A sign-up test

Create an API key in app.proxymail.qa → Project settings → API keys, and set it as PROXYMAIL_QA_API_KEY where your tests run.

import re

from playwright.sync_api import Page, expect

from proxymail_qa import create_address, delete_address, now, wait_for_link


def test_sign_up_verifies_the_email(page: Page):
    account = create_address()
    page.goto("/signup")
    page.get_by_label("Email").fill(account["address"])
    page.get_by_label("Password").fill(account["password"])

    submitted = now()
    page.get_by_role("button", name="Sign up").click()

    page.goto(wait_for_link(account["address"], since=submitted))
    expect(page).to_have_url(re.compile("verified"))
    delete_address(account["address"])

since makes the wait ignore anything sent before the form was submitted. wait_for_code does the same for a code. The guide covers form values, account pools, checks on an email, two-factor codes and run reports: proxymail.qa/docs/python.

Run reports in pytest

To have each call name its test, and failed tests and totals recorded in a run, import the hooks into conftest.py:

from proxymail_qa import pytest_runtest_setup, pytest_runtest_teardown, pytest_runtest_logreport, pytest_sessionfinish

Licence

MIT

Metadata

Release files for proxymail-qa 1.0.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for proxymail-qa 1.0.0
File Size Uploaded Provenance Actions
proxymail_qa-1.0.0.tar.gz 22.7 kB Without provenance Details for proxymail_qa-1.0.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for proxymail-qa 1.0.0
File Interpreter ABI Platform Actions
proxymail_qa-1.0.0-py3-none-any.whl Python 3 none any Details for proxymail_qa-1.0.0-py3-none-any.whl

Total release size: 45.2 kB

Release files / proxymail_qa-1.0.0.tar.gz

Download URL proxymail_qa-1.0.0.tar.gz
Size 22.7 kB
Tags Source
SHA-256 checksum
How to use checksums
3b87e47809360f0165017e43662a8c7d1dae2b1796f40c87d5f795f8860d0538
BLAKE2b-256 checksum
How to use checksums
5c9cde1ada371345d621d20a283a38f601915de8c9675b4620ef63f9ee39d03c
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.12.0

Release files / proxymail_qa-1.0.0-py3-none-any.whl

Download URL proxymail_qa-1.0.0-py3-none-any.whl
Size 22.5 kB
Tags Python 3
SHA-256 checksum
How to use checksums
32cbd53a9eb893ff3adae1865a49a8fd06486c55cb7fed8586b4751c2d57a8d3
BLAKE2b-256 checksum
How to use checksums
b90e6b38753b4229b7a7f268f55bd7fbdb013f95ffce60957d1b32c2acf86172
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.12.0

Security for proxymail-qa 1.0.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

1.0.0 This release

2 release files No provenance

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