Skip to content

Commit

Permalink
Update pytest_django/asserts.py
Browse files Browse the repository at this point in the history
  • Loading branch information
bluetech committed Jan 30, 2024
1 parent 8813b83 commit b0b7758
Showing 1 changed file with 8 additions and 9 deletions.
17 changes: 8 additions & 9 deletions pytest_django/asserts.py
Original file line number Diff line number Diff line change
Expand Up @@ -230,15 +230,14 @@ def assertNumQueries(
):
...

if USE_CONTRIB_MESSAGES:

def assertMessages(
response: HttpResponseBase,
expected_messages: Sequence[Message],
*args,
ordered: bool = ...,
) -> None:
...
# Added in Django 5.0.
def assertMessages(
response: HttpResponseBase,
expected_messages: Sequence[Message],
*args,
ordered: bool = ...,
) -> None:
...

# Fallback in case Django adds new asserts.
def __getattr__(name: str) -> Callable[..., Any]:
Expand Down

0 comments on commit b0b7758

Please sign in to comment.