Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

5.0: Update django.contrib.messages.test #2126

Merged
merged 2 commits into from
May 6, 2024
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Fix expected_messages, the argument value of assertMessages
JaeHyuckSa committed May 6, 2024

Unverified

This commit is not signed, but one or more authors requires that any commit attributed to them is signed.
commit 513bda5e7dc05c31402b7b4c3e0ce07d33a4bfb9
4 changes: 2 additions & 2 deletions django-stubs/contrib/messages/test.pyi
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
from typing import Any

from django.contrib.messages.storage.base import Message
from django.contrib.messages.storage.base import BaseStorage
from django.http.response import HttpResponse

class MessagesTestMixin:
def assertMessages(
self, response: HttpResponse, expected_messages: list[dict[str, Any] | type[Message]], *, ordered: bool = ...
self, response: HttpResponse, expected_messages: list[Any] | BaseStorage, *, ordered: bool = ...
) -> None: ...