fix: flaky oidc tests
All checks were successful
continuous-integration/drone/push Build is passing
continuous-integration/drone/promote/production Build is passing

This commit is contained in:
Simon 2026-04-07 17:31:16 +02:00
parent 1d3f973410
commit e6d14da5f3
Signed by: simon
GPG key ID: 40E7A58C4AA1EDB2
3 changed files with 13 additions and 0 deletions

View file

@ -710,6 +710,10 @@ end
## Testing Strategy
### Test process environment
`test/test_helper.exs` clears Vereinfacht and OIDC-related environment variables at startup (same rationale as not hitting real APIs when `.env` is loaded). `Mv.Config` prefers ENV over database settings; without this, OIDC sign-in redirect tests would depend on the developer shell and become flaky. Tests that need specific OIDC env values set them in `setup` and restore with `on_exit`.
### Test Coverage Areas
#### 1. Unit Tests (Domain Logic)