forked from Ponysearch/Ponysearch
[mod] add test to check compat.py module
Signed-off-by: Markus Heiser <markus.heiser@darmarit.de>
This commit is contained in:
parent
ae496e9dd0
commit
a3921b5ed7
1 changed files with 13 additions and 0 deletions
13
tests/unit/test_toml.py
Normal file
13
tests/unit/test_toml.py
Normal file
|
@ -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)
|
Loading…
Reference in a new issue