Skip to main content

Testing utilities plugin for Belgie

Project description

belgie-testing

Testing utilities plugin for Belgie.

belgie-testing provides test-only helpers for creating individuals, persisting records, creating authenticated sessions, and building cookies for browser tests. It does not register public routes.

Pass capture_otp=True when registering the plugin to expose get_otp(...) and clear_otps() for verification-token capture in tests.

test = belgie.add_plugin(BelgieTestUtils(capture_otp=True))

await sso_client.create_domain_challenge(provider_id="acme", domain="example.com")
assert test.get_otp("example.com") is not None

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

belgie_testing-0.1.0.tar.gz (3.5 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

belgie_testing-0.1.0-py3-none-any.whl (4.7 kB view details)

Uploaded Python 3

File details

Details for the file belgie_testing-0.1.0.tar.gz.

File metadata

  • Download URL: belgie_testing-0.1.0.tar.gz
  • Upload date:
  • Size: 3.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.11.7 {"installer":{"name":"uv","version":"0.11.7","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"macOS","version":null,"id":null,"libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

File hashes

Hashes for belgie_testing-0.1.0.tar.gz
Algorithm Hash digest
SHA256 dd8c97f140766ca806097251a21812fbd13b7a92941ab14355a74f80f5f53545
MD5 024e5a0e830417cf2d7296d8f0a01358
BLAKE2b-256 3ad83dac2e17c2985cf9501eb0fe00f9f01905bd012528464cb754c9769b8d77

See more details on using hashes here.

File details

Details for the file belgie_testing-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: belgie_testing-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 4.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.11.7 {"installer":{"name":"uv","version":"0.11.7","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"macOS","version":null,"id":null,"libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

File hashes

Hashes for belgie_testing-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 cdf99fe81d7797dc067cdef5360cbd1a8c8e999f589d0776040c9bf30a993b7a
MD5 0cf52e432ac1ddcd67535322539de78a
BLAKE2b-256 44a675993ff4313ac2749154898c1e3649fd47fac8f3499206ed2f875338d702

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page