Buckets:
| # tests/conftest.py | |
| """Shared fixtures for VERONICA tests.""" | |
| from __future__ import annotations | |
| import os | |
| import pytest | |
| def _disable_auth_in_tests(monkeypatch: pytest.MonkeyPatch) -> None: | |
| """Disable API key auth for all tests unless VERONICA_API_KEY is already set. | |
| Tests that exercise auth directly (test_api_auth.py) manage their own | |
| environment via monkeypatch and will override this fixture. | |
| """ | |
| if not os.environ.get("VERONICA_API_KEY"): | |
| monkeypatch.setenv("VERONICA_AUTH_DISABLED", "1") | |
| def _reset_auth_warn_once() -> None: | |
| """Reset auth module warn-once state between tests to prevent pollution.""" | |
| from veronica.api.auth import reset_warn_once | |
| reset_warn_once() | |
Xet Storage Details
- Size:
- 781 Bytes
- Xet hash:
- b85a0420b22a6a869d5685300a849619c5131db2f448df023131b32f0871a76a
·
Xet efficiently stores files, intelligently splitting them into unique chunks and accelerating uploads and downloads. More info.