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 d743f49
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions tests/sentry/utils/test_outcomes.py
Original file line number Diff line number Diff line change
Expand Up @@ -359,15 +359,15 @@ def test_track_outcome_with_invalid_inputs():
project_id=2,
key_id=3,
outcome=Outcome.ACCEPTED,
)
) # type: ignore[arg-type]

with pytest.raises(AssertionError):
track_outcome(
org_id=1,
project_id=2,
key_id=3,
outcome="invalid_outcome", # Should be Outcome instance
)
) # type: ignore[arg-type]

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


def test_track_outcome_idempotency_key(setup):
Expand Down

0 comments on commit d743f49

Please sign in to comment.