Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Is there a way to monkeypatch a django contrib exception so that tests will pass?
- MessageFailure.skip_sentry = True
- from django.contrib.messages.api import MessageFailure
- class MessageFailureMixin:
- skip_sentry = True
- MessageFailure.__bases__ += (MessageFailureMixin,)
Add Comment
Please, Sign In to add comment