Skip to content

Commit

Permalink
add some typehints
Browse files Browse the repository at this point in the history
  • Loading branch information
RayBB committed May 1, 2024
1 parent 0690499 commit c03d1c4
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions openlibrary/tests/core/test_wikidata.py
Original file line number Diff line number Diff line change
Expand Up @@ -46,8 +46,12 @@ def createWikidataEntity(
],
)
def test_get_wikidata_entity(
bust_cache, fetch_missing, status, expected_web_call, expected_cache_call
):
bust_cache: bool,
fetch_missing: bool,
status: str,
expected_web_call: bool,
expected_cache_call: bool,
) -> None:
with (
patch.object(wikidata, "_get_from_cache") as mock_get_from_cache,
patch.object(wikidata, "_get_from_web") as mock_get_from_web,
Expand Down

0 comments on commit c03d1c4

Please sign in to comment.