summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorMarkus Heiser <markus.heiser@darmarit.de>2024-10-15 17:25:34 +0200
committerMarkus Heiser <markus.heiser@darmarIT.de>2024-10-26 15:59:42 +0200
commita3921b5ed7e70e6355763569970076e9038f3106 (patch)
tree90bcee158ae94adf9ffd273f4ab59dbdb32db968 /tests
parentae496e9dd017de6233b79409be0be8f15be6f91b (diff)
downloadsearxng-a3921b5ed7e70e6355763569970076e9038f3106.tar.gz
searxng-a3921b5ed7e70e6355763569970076e9038f3106.zip
[mod] add test to check compat.py module
Signed-off-by: Markus Heiser <markus.heiser@darmarit.de>
Diffstat (limited to 'tests')
-rw-r--r--tests/unit/test_toml.py13
1 files changed, 13 insertions, 0 deletions
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)