Metadata-Version: 2.3
Name: belgie-testing
Version: 0.1.0
Summary: Testing utilities plugin for Belgie
Author: Matt LeMay
Author-email: Matt LeMay <mplemay@users.noreply.github.com>
Requires-Dist: belgie-core==0.1.0
Requires-Dist: belgie-proto==0.1.0
Requires-Dist: fastapi>=0.100
Requires-Python: >=3.12, <3.15
Description-Content-Type: text/markdown

# 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.

```python
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
```
