mirror of
https://github.com/calibrain/shelfmark.git
synced 2026-10-05 18:51:05 +01:00
- Reworked many tests - Enforcing lint + type checking for test suite - Fixed various issues surfaced by the new tests - CI tweaks
14 lines
454 B
Python
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
|