use config validation for healthcheck

This commit is contained in:
Stefan Allius
2024-06-15 23:23:57 +02:00
parent a16a19cc2c
commit ae94cd62fc
2 changed files with 10 additions and 7 deletions

View File

@@ -2,6 +2,7 @@
import tomllib
from schema import SchemaMissingKeyError
from app.src.config import Config
from typing import Tuple
class TstConfig(Config):
@@ -10,8 +11,8 @@ class TstConfig(Config):
cls.config = cnf
@classmethod
def _read_config_file(cls) -> dict:
return cls.config
def _read_config_file(cls) -> Tuple[dict, str| None]:
return cls.config, None
def test_empty_config():