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.1.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.1.0
File Size Uploaded Provenance Actions
proxymail_qa-1.1.0.tar.gz 23.5 kB Without provenance Details for proxymail_qa-1.1.0.tar.gz

Built distribution (wheel)

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

Total release size: 46.8 kB

Release files / proxymail_qa-1.1.0.tar.gz

Download URL proxymail_qa-1.1.0.tar.gz
Size 23.5 kB
Tags Source
SHA-256 checksum
How to use checksums
0ee5bfd2f3aae08824e156b8b4b1c6fd5616f5a7e1ae9b2e0f247d1ccc8574df
BLAKE2b-256 checksum
How to use checksums
59ed50b1303f102b567afc8357b986e4e4e8c4a319761a9d5c590b524122a72f
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.1.0-py3-none-any.whl

Download URL proxymail_qa-1.1.0-py3-none-any.whl
Size 23.3 kB
Tags Python 3
SHA-256 checksum
How to use checksums
1855c5cca444bcf30990f647e7cb8ef046be69d55a0fa7586fe5f3218f10f362
BLAKE2b-256 checksum
How to use checksums
9a1372a1a7a703ced3f46debdf8733456433c1d8334f9bbe16cad6ac42804c2d
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.1.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.1.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