You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit 30362cd
Browse filesBrowse the repository at this point in the historyBrowse files
test: Narrow broad pytest.raises() instead of ignoring PT011
Add match= with the expected message to every pytest.raises() that
PT011 flagged, and drop the noqa comments. Where a test already
asserted on the message afterwards, the assertion moves into match=.
- test_get_error_message used pytest.raises() only as an attribute
holder, so it now builds a plain Exception instead.
- The httplib test expects http.client.CannotSendRequest.
- The skipped celery redis-backend test expects the task's
ZeroDivisionError; the Celery 4.1 workaround predates the minimum
supported Celery version (4.4.7).
Co-Authored-By: Ivana Kellyer <ivana.kellyer@sentry.io>
0 commit comments