test config parsing

This commit is contained in:
Colin Goutte 2021-10-13 13:54:30 +02:00
parent 037643b74e
commit ceea0c5d77
1 changed files with 10 additions and 0 deletions

View File

@ -8,6 +8,9 @@ from fastapi.testclient import TestClient
from papi.main import app, get_db
from papi.main import sondes
from papi import config
import papi.main
from papi import __version__
from . import utils as testutils
@ -204,6 +207,13 @@ def test_notif_rendering():
assert f"{idsonde}@fqdn" in content.text.lower()
class ConfigurationTestCase(TestCase):
""" Check configuration parsing """
def test_get_config(self):
main.read_config()
class CodeCoverageTestCase(TestCase):
""" Get covergage to 100% """