Skip to content

Commit

Permalink
override mypy false positives
Browse files Browse the repository at this point in the history
  • Loading branch information
dashed committed Oct 8, 2024
1 parent be50a0e commit b4d9cf6
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions tests/sentry/utils/test_outcomes.py
Original file line number Diff line number Diff line change
Expand Up @@ -355,7 +355,8 @@ def test_track_outcome_with_invalid_inputs():
"""
with pytest.raises(AssertionError):
track_outcome(
org_id="invalid_org_id", # Should be int
# Should be int
org_id="invalid_org_id", # type: ignore[arg-type]
project_id=2,
key_id=3,
outcome=Outcome.ACCEPTED,
Expand All @@ -366,7 +367,8 @@ def test_track_outcome_with_invalid_inputs():
org_id=1,
project_id=2,
key_id=3,
outcome="invalid_outcome", # Should be Outcome instance
# Should be Outcome instance
outcome="invalid_outcome", # type: ignore[arg-type]
)

with pytest.raises(AssertionError):
Expand All @@ -375,7 +377,8 @@ def test_track_outcome_with_invalid_inputs():
project_id=2,
key_id=3,
outcome=Outcome.ACCEPTED,
category="invalid_category", # Should be DataCategory or None
# Should be DataCategory or None
category="invalid_category", # type: ignore[arg-type]
)


Expand Down

0 comments on commit b4d9cf6

Please sign in to comment.