mirror of
https://github.com/calibrain/shelfmark.git
synced 2026-10-04 22:05:45 +01:00
- Restructured search field options into the left-hand selector. Includes dynamic options for each provider. - Moved Hardcover list and manual search mode into the left hand selector - Added search mode and metadata provider into the search options area - Added new Hardcover series API query and live series suggestions - Added live Hardcover author and title suggestions
16 lines
516 B
Python
16 lines
516 B
Python
from shelfmark.metadata_providers import get_provider_capabilities
|
|
|
|
|
|
class TestMetadataProviderCapabilities:
|
|
def test_hardcover_exposes_view_series_capability(self):
|
|
assert get_provider_capabilities("hardcover") == [
|
|
{
|
|
"key": "view_series",
|
|
"field_key": "series",
|
|
"sort": "series_order",
|
|
}
|
|
]
|
|
|
|
def test_providers_without_capabilities_return_empty_list(self):
|
|
assert get_provider_capabilities("openlibrary") == []
|