summaryrefslogtreecommitdiff
path: root/tests/messages_tests
AgeCommit message (Collapse)Author
2025-07-23Refs #36500 -- Rewrapped long docstrings and block comments via a script.django-bot
Rewrapped long docstrings and block comments to 79 characters + newline using script from https://github.com/medmunds/autofix-w505.
2024-08-08Fixed #35622 -- Made unittest ignore Django assertions in traceback frames.Adam Johnson
Co-authored-by: Natalia <124304+nessita@users.noreply.github.com>
2024-01-04Used enterClassContext() where appropriate.Mariusz Felisiak
2023-12-31Used addCleanup() in tests where appropriate.Mariusz Felisiak
2023-11-13Fixed #34958 -- Fixed isolation of messages_tests.tests.TestLevelTags.test_lazy.nessita
2023-10-24Fixed #34923 -- Avoided initializing LEVEL_TAGS when importing ↵Mariusz Felisiak
django.contrib.messages. Regression in b7fe36ad37fb18c4bc7932c0aec6ae4f299b9622. Thanks James Gillard for the report.
2023-09-05Fixed #34730 -- Added ↵François Freitag
django.contrib.messages.test.MessagesTestMixin.assertMessages().
2023-08-25Refs #34730 -- Made Message importable from django.contrib.messages.François Freitag
2023-08-24Refs #24121 -- Added __repr__() to Message.François Freitag
2023-03-27Refs #28948 -- Removed superfluous messages from cookie through bisect.David Wobrock
2023-03-27Refs #28948 -- Precomputed once serialized cookie messages.David Wobrock
When the cookie size is too long, the same messages were serialized over and over again.
2023-03-27Fixed typo in tests/messages_tests/test_cookie.py.David Wobrock
2022-02-07Refs #33476 -- Refactored code to strictly match 88 characters line length.Mariusz Felisiak
2022-02-07Refs #33476 -- Reformatted code with Black.django-bot
2022-01-24Fixed #33458 -- Fixed encoding of messages with empty string as extra_tags.Timothy McCurrach
2021-11-26Fixed #33303 -- Changed messages' level tags on MESSAGE_TAGS setting change.Hasan Ramezani
2021-09-20Refs #32191 -- Removed for the pre-Django 3.2 format of messages in ↵Mariusz Felisiak
CookieStorage. Per deprecation timeline.
2021-07-14Fixed #21936 -- Allowed DeleteView to work with custom Forms and ↵Carlton Gibson
SuccessMessageMixin. Thanks to Mariusz Felisiak for review. Co-authored-by: Demetris Stavrou <demestav@gmail.com> Co-authored-by: Caroline Simpson <github@hoojiboo.com>
2021-06-07Refs #24121 -- Added __repr__() to ChangeList and BaseStorage.saeedblanchette
2021-04-14Fixed #32643 -- Fixed decoding of messages in the pre-Django 3.2 format.Florian Apolloner
Thanks Jan Pieter Waagmeester for the report. Regression in 2d6179c819010f6a9d00835d5893c4593c0b85a0.
2021-03-16Refs #32508 -- Raised ImproperlyConfigured instead of using "assert" in ↵Daniyal
SessionStorage.
2021-01-14Refs #31842 -- Removed DEFAULT_HASHING_ALGORITHM transitional setting.Mariusz Felisiak
Per deprecation timeline.
2021-01-14Refs #27604 -- Removed support for the pre-Django 3.1 encoding format in ↵Mariusz Felisiak
CookieStorage. Per deprecation timeline.
2021-01-07Fixed #32191 -- Made CookieStorage use RFC 6265 compliant format.Florian Apolloner
Co-authored-by: Craig Smith <hello@craigiansmith.com.au>
2020-11-20Simplified MessageEncoder instantiation with default separators.Florian Apolloner
2020-08-04Fixed #31842 -- Added DEFAULT_HASHING_ALGORITHM transitional setting.Mariusz Felisiak
It's a transitional setting helpful in migrating multiple instance of the same project to Django 3.1+. Thanks Markus Holtermann for the report and review, Florian Apolloner for the implementation idea and review, and Carlton Gibson for the review.
2020-07-16Fixed #31790 -- Fixed setting SameSite and Secure cookies flags in ↵Mariusz Felisiak
HttpResponse.delete_cookie(). Cookies with the "SameSite" flag set to None and without the "secure" flag will be soon rejected by latest browser versions. This affects sessions and messages cookies.
2020-02-18Refs #26601 -- Deprecated passing None as get_response arg to middleware ↵Claude Paroz
classes. This is the new contract since middleware refactoring in Django 1.10. Co-authored-by: Carlton Gibson <carlton.gibson@noumenal.es> Co-authored-by: Mariusz Felisiak <felisiak.mariusz@gmail.com>
2020-02-04Fixed #27604 -- Used the cookie signer to sign message cookies.Claude Paroz
Co-authored-by: Craig Anderson <craiga@craiga.id.au>
2020-01-31Refs #22426 -- Removed pre-Django 1.5 messages compatibility code and test.Claude Paroz
This reverts commit f286721f7fdc2202f77a5f4d650d9d0779b86811.
2019-10-23Added tests for middlewares' checks.Sergey Fedoseev
2019-10-01Fixed #30651 -- Made __eq__() methods return NotImplemented for not ↵ElizabethU
implemented comparisons. Changed __eq__ to return NotImplemented instead of False if compared to an object of the same type, as is recommended by the Python data model reference. Now these models can be compared to ANY (or other objects with __eq__ overwritten) without returning False automatically.
2019-10-01Refs #30651 -- Added tests for Message.__eq__().Mariusz Felisiak
2018-12-31Updated test URL patterns to use path() and re_path().Tim Graham
2018-11-27Made reused RequestFactory instances class attributes.Simon Charette
2018-04-13Fixed #27863 -- Added support for the SameSite cookie flag.Alex Gaynor
Thanks Alex Gaynor for contributing to the patch.
2018-02-01Fixed imports per isort 4.3.0.Mariusz Felisiak
2018-01-12Fixed #28996 -- Simplified some boolean constructs and removed trivial ↵Дилян Палаузов
continue statements.
2018-01-02Fixed #28965 -- Updated Set-Cookie's Expires date format to follow RFC 7231.Alexey
2017-12-08Corrected type of MESSAGE_TAGS setting override in tests.Nick Pope
2017-05-27Fixed #28249 -- Removed unnecessary dict.keys() calls.Jon Dufresne
iter(dict) is equivalent to iter(dict.keys()).
2017-05-10Complemented message storage test with explicit None extra_tags valueClaude Paroz
2017-02-27Imported django.http classes instead of django.http.Asif Saifuddin Auvi
2017-02-07Converted usage of ugettext* functions to their gettext* aliasesClaude Paroz
Thanks Tim Graham for the review.
2017-01-25Refs #23919 -- Replaced super(ClassName, self) with super().chillaranand
2017-01-19Refs #23919 -- Stopped inheriting from object to define new style classes.Simon Charette
2017-01-09Fixed #27688 -- Made messages' add_message() request check use ducktyping.Raffaele Salmaso
2017-01-05Cosmetic edits for messages_tests.Tim Graham
2016-11-10Refs #27392 -- Removed "Tests that", "Ensures that", etc. from test docstrings.za
2016-06-16Fixed #26747 -- Used more specific assertions in the Django test suite.Jon Dufresne