Skip to content

Commit

Permalink
Resolved union-attr type ignores
Browse files Browse the repository at this point in the history
  • Loading branch information
jamesbraza committed Sep 16, 2024
1 parent 70b9200 commit 0751baf
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions tests/test_clients.py
Original file line number Diff line number Diff line change
Expand Up @@ -595,7 +595,9 @@ async def test_crossref_retraction_status(stub_data_dir: Path) -> None:
title="The Dilemma and Countermeasures of Music Education under the Background of Big Data",
fields=["title", "doi", "authors", "journal"],
)

assert "**RETRACTED ARTICLE** Citation: Jiaye Han." in crossref_details.formatted_citation # type: ignore[union-attr]

assert crossref_details.is_retracted is True, "Should be retracted" # type: ignore[union-attr]
assert crossref_details
assert (
"**RETRACTED ARTICLE** Citation: Jiaye Han."
in crossref_details.formatted_citation
)
assert crossref_details.is_retracted is True, "Should be retracted"

0 comments on commit 0751baf

Please sign in to comment.