diff --git a/superdesk/tests/mocks/search_provider.py b/superdesk/tests/mocks/search_provider.py index ac8ee89358..bf84a0013b 100644 --- a/superdesk/tests/mocks/search_provider.py +++ b/superdesk/tests/mocks/search_provider.py @@ -68,7 +68,7 @@ "language": "fr", "word_count": 3, "_fetchable": False, - } + }, ] @@ -79,14 +79,7 @@ def find(self, query): return ListCursor(FIXTURES) def fetch(self, guid): - item = next( - ( - item - for item in FIXTURES - if item.get("_id") == guid - ), - None - ) + item = next((item for item in FIXTURES if item.get("_id") == guid), None) if item is None: raise SuperdeskApiError.notFoundError("Search item not found") return item