From a3921b5ed7e70e6355763569970076e9038f3106 Mon Sep 17 00:00:00 2001 From: Markus Heiser Date: Tue, 15 Oct 2024 17:25:34 +0200 Subject: [mod] add test to check compat.py module Signed-off-by: Markus Heiser --- tests/unit/test_toml.py | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 tests/unit/test_toml.py diff --git a/tests/unit/test_toml.py b/tests/unit/test_toml.py new file mode 100644 index 000000000..766a2bb97 --- /dev/null +++ b/tests/unit/test_toml.py @@ -0,0 +1,13 @@ +# SPDX-License-Identifier: AGPL-3.0-or-later +# pylint: disable=missing-module-docstring + +from tests import SearxTestCase +from searx import compat +from searx.favicons.config import DEFAULT_CFG_TOML_PATH + + +class CompatTest(SearxTestCase): # pylint: disable=missing-class-docstring + + def test_toml(self): + with DEFAULT_CFG_TOML_PATH.open("rb") as f: + _ = compat.tomllib.load(f) -- cgit v1.2.3-54-g00ecf