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.19.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.19.0-py3-none-any.whl (4.7 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for belgie_testing-0.19.0.tar.gz
Algorithm Hash digest
SHA256 8b0895a663e38beb5fb1727d4b28dfb7550980db1d6bc9d284cb9055138b30c8
MD5 b45539d15b32935288171b5b6c8a01b3
BLAKE2b-256 6617a15a22ff8ed66dabc0e26a0385e4b275cfc20543fbf0b61e80df655c4553

See more details on using hashes here.

File details

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

File metadata

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

File hashes

Hashes for belgie_testing-0.19.0-py3-none-any.whl
Algorithm Hash digest
SHA256 f9c914f9c79362222fa4f1f2b0709508f02ee70f55a6903d879089362c311eb9
MD5 6f46afb3a6ea7624a80be1fbf13a3a2d
BLAKE2b-256 351e022259cae6d33d0af7aea873e75b706f5857290adc080acb348b580ff939

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