Skip to content

Commit

Permalink
fix code formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
MarkLark86 committed Mar 26, 2024
1 parent 10ea6c3 commit 0128341
Showing 1 changed file with 2 additions and 9 deletions.
11 changes: 2 additions & 9 deletions superdesk/tests/mocks/search_provider.py
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@
"language": "fr",
"word_count": 3,
"_fetchable": False,
}
},
]


Expand All @@ -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
Expand Down

0 comments on commit 0128341

Please sign in to comment.