test_toml.py 399 B

1234567891011121314
  1. # SPDX-License-Identifier: AGPL-3.0-or-later
  2. # pylint: disable=missing-module-docstring,disable=missing-class-docstring,invalid-name
  3. from tests import SearxTestCase
  4. from searx import compat
  5. from searx.favicons.config import DEFAULT_CFG_TOML_PATH
  6. class CompatTest(SearxTestCase):
  7. def test_toml(self):
  8. with DEFAULT_CFG_TOML_PATH.open("rb") as f:
  9. _ = compat.tomllib.load(f)