Skip to content

Commit

Permalink
5.0: Update django.contrib.messages.test (#2126)
Browse files Browse the repository at this point in the history
  • Loading branch information
JaeHyuckSa authored May 6, 2024
1 parent 4a5b065 commit ee7417f
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 1 deletion.
9 changes: 9 additions & 0 deletions django-stubs/contrib/messages/test.pyi
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
from typing import Any

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

class MessagesTestMixin:
def assertMessages(
self, response: HttpResponse, expected_messages: list[Any] | BaseStorage, *, ordered: bool = ...
) -> None: ...
1 change: 0 additions & 1 deletion scripts/stubtest/allowlist_todo_django50.txt
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,6 @@ django.contrib.gis.management
django.contrib.gis.management.commands
django.contrib.gis.management.commands.inspectdb
django.contrib.gis.management.commands.ogrinspect
django.contrib.messages.test
django.db.backends.mysql.features.DatabaseFeatures.allows_group_by_selected_pks
django.db.backends.mysql.features.DatabaseFeatures.has_native_uuid_field
django.db.backends.mysql.features.DatabaseFeatures.supports_expression_defaults
Expand Down
1 change: 1 addition & 0 deletions tests/typecheck/test_import_all.yml
Original file line number Diff line number Diff line change
Expand Up @@ -234,6 +234,7 @@
import django.contrib.messages.storage.session
import django.contrib.messages.utils
import django.contrib.messages.views
import django.contrib.messages.test
import django.contrib.postgres
import django.contrib.postgres.aggregates
import django.contrib.postgres.aggregates.general
Expand Down

0 comments on commit ee7417f

Please sign in to comment.