Skip to content

Commit

Permalink
wip
Browse files Browse the repository at this point in the history
  • Loading branch information
joeyorlando committed Jun 10, 2024
1 parent e36dfec commit c4477b0
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions engine/apps/integrations/tests/test_views.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,14 @@
class DatabaseBlocker(DjangoDbBlocker):
"""Customize pytest_django db blocker to raise OperationalError exception."""

def __init__(self, *args, **kwargs):
"""
Override the constructor to get around this:
https://github.com/pytest-dev/pytest-django/blob/v4.8.0/pytest_django/plugin.py#L778-L782
"""
self._history = []
self._real_ensure_connection = None

def _blocking_wrapper(*args, **kwargs):
__tracebackhide__ = True
__tracebackhide__ # Silence pyflakes
Expand Down

0 comments on commit c4477b0

Please sign in to comment.