Buckets:
AnonymousSpottedToad/candidate_bucket / codebase /python /tristeng_tasos-apiauth /tests /apiauth /test_config.py
| # | |
| # Copyright Tristen Georgiou 2023 | |
| # | |
| import re | |
| from tasos.apiauth.config import get_apiauth_settings, PASSWORD_REGEX, PASSWORD_HELP | |
| def test_get_apiauth_settings() -> None: | |
| # NOTE: the environment variables are set using pytest-env and are found in the pyproject.toml file | |
| settings = get_apiauth_settings() | |
| assert settings.secret_key == "somesecretkey" | |
| assert settings.algorithm == "HS256" | |
| assert settings.access_token_expire_minutes == 15 | |
| assert settings.database_url == "sqlite+aiosqlite://?check_same_thread=false" | |
| assert settings.password_regex == re.compile(PASSWORD_REGEX) | |
| assert settings.password_help == PASSWORD_HELP | |
| assert settings.datetime_fmt == "%Y-%m-%d %H:%M:%S" | |
Xet Storage Details
- Size:
- 736 Bytes
- Xet hash:
- 8d6570992519c6cf1f44b7e489956fadca334897ac561333edf4e8bb3e3450ee
·
Xet efficiently stores files, intelligently splitting them into unique chunks and accelerating uploads and downloads. More info.