From ceea0c5d7794da6919e519de9c6c71cabb6dd9a5 Mon Sep 17 00:00:00 2001 From: Colin Goutte Date: Wed, 13 Oct 2021 13:54:30 +0200 Subject: [PATCH] test config parsing --- tests/test_papi.py | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/tests/test_papi.py b/tests/test_papi.py index 2d0e8c6..e5f07da 100644 --- a/tests/test_papi.py +++ b/tests/test_papi.py @@ -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% """