fix(lint): Fix linting issues
Some checks failed
Enforce Conventional Commit PR Title / Validate PR Title (pull_request_target) Successful in 7s
CI / ci (pull_request) Failing after 42s

This commit is contained in:
2025-06-06 18:31:41 +01:00
parent 590e0941bf
commit 6abb3b871b
5 changed files with 79 additions and 15 deletions

View File

@ -2,19 +2,22 @@
import os
vars: dict = {
env_vars: dict = {
"APP_VERSION": "dev",
"WEBEX_API_KEY": "testing",
}
for var, value in vars.items():
for var, value in env_vars.items():
os.environ[var] = value
# needs to be imported AFTER environment variables are set
from app.config import config # pragma: no cover # noqa: E402
from app.config import (
config,
) # pylint: disable=wrong-import-position # pragma: no cover # noqa: E402
def test_config() -> None:
assert config.webex_token == vars["WEBEX_API_KEY"]
assert config.version == vars["APP_VERSION"]
"""Test the configuration settings."""
assert config.webex_token == env_vars["WEBEX_API_KEY"]
assert config.version == env_vars["APP_VERSION"]