Files
shelfmark/tests/config/test_search_mode_settings.py
Alex d7b9f2e67f Backend test hardening + quality enforcement (#872)
- Reworked many tests
- Enforcing lint + type checking for test suite
- Fixed various issues surfaced by the new tests
- CI tweaks
2026-04-12 12:01:52 +01:00

14 lines
454 B
Python

"""Tests for search mode settings definitions."""
from shelfmark.config.settings import search_mode_settings
def test_search_mode_settings_include_release_source_links_toggle():
fields = {field.key: field for field in search_mode_settings() if hasattr(field, "key")}
field = fields["SHOW_RELEASE_SOURCE_LINKS"]
assert field.label == "Show Release Source Links"
assert field.default is True
assert field.user_overridable is False