Skip to content

Commit

Permalink
FCL-638 | update tests to be specific boolean values
Browse files Browse the repository at this point in the history
  • Loading branch information
jlhdxw committed Feb 3, 2025
1 parent 547faf9 commit 5ed46b4
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions judgments/tests/test_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -99,17 +99,17 @@ def test_press_summary_list_breadcrumbs(self):
def test_is_exact_ncn_match_empty_ncn(self):
document = JudgmentFactory.build(neutral_citation=None)

assert not is_exact_ncn_match(document, "foo")
assert is_exact_ncn_match(document, "foo") is False

def test_is_exact_ncn_match_with_matching_ncn(self):
document = JudgmentFactory.build()

assert is_exact_ncn_match(document, document.neutral_citation)
assert is_exact_ncn_match(document, document.neutral_citation) is True

def test_is_exact_ncn_match_with_unmatched_ncn(self):
document = JudgmentFactory.build()

assert not is_exact_ncn_match(document, "foo")
assert is_exact_ncn_match(document, "foo") is False

@mock.patch("judgments.utils.utils.api_client")
def test_get_press_summaries_for_document_uri(self, mock_api_client):
Expand Down

0 comments on commit 5ed46b4

Please sign in to comment.