summaryrefslogtreecommitdiff
path: root/tests/messages_tests
Commit message (Collapse)AuthorAgeFilesLines
* Refs #28948 -- Removed superfluous messages from cookie through bisect.David Wobrock2023-03-271-0/+20
|
* Refs #28948 -- Precomputed once serialized cookie messages.David Wobrock2023-03-271-2/+2
| | | | | When the cookie size is too long, the same messages were serialized over and over again.
* Fixed typo in tests/messages_tests/test_cookie.py.David Wobrock2023-03-271-1/+1
|
* Refs #33476 -- Refactored code to strictly match 88 characters line length.Mariusz Felisiak2022-02-072-2/+6
|
* Refs #33476 -- Reformatted code with Black.django-bot2022-02-079-190/+225
|
* Fixed #33458 -- Fixed encoding of messages with empty string as extra_tags.Timothy McCurrach2022-01-241-8/+25
|
* Fixed #33303 -- Changed messages' level tags on MESSAGE_TAGS setting change.Hasan Ramezani2021-11-262-19/+21
|
* Refs #32191 -- Removed for the pre-Django 3.2 format of messages in ↵Mariusz Felisiak2021-09-201-17/+0
| | | | | | CookieStorage. Per deprecation timeline.
* Fixed #21936 -- Allowed DeleteView to work with custom Forms and ↵Carlton Gibson2021-07-143-4/+25
| | | | | | | | | SuccessMessageMixin. Thanks to Mariusz Felisiak for review. Co-authored-by: Demetris Stavrou <demestav@gmail.com> Co-authored-by: Caroline Simpson <github@hoojiboo.com>
* Refs #24121 -- Added __repr__() to ChangeList and BaseStorage.saeedblanchette2021-06-071-0/+8
|
* Fixed #32643 -- Fixed decoding of messages in the pre-Django 3.2 format.Florian Apolloner2021-04-141-2/+5
| | | | | | Thanks Jan Pieter Waagmeester for the report. Regression in 2d6179c819010f6a9d00835d5893c4593c0b85a0.
* Refs #32508 -- Raised ImproperlyConfigured instead of using "assert" in ↵Daniyal2021-03-161-1/+2
| | | | SessionStorage.
* Refs #31842 -- Removed DEFAULT_HASHING_ALGORITHM transitional setting.Mariusz Felisiak2021-01-141-13/+0
| | | | Per deprecation timeline.
* Refs #27604 -- Removed support for the pre-Django 3.1 encoding format in ↵Mariusz Felisiak2021-01-141-11/+0
| | | | | | CookieStorage. Per deprecation timeline.
* Fixed #32191 -- Made CookieStorage use RFC 6265 compliant format.Florian Apolloner2021-01-073-6/+53
| | | | Co-authored-by: Craig Smith <hello@craigiansmith.com.au>
* Simplified MessageEncoder instantiation with default separators.Florian Apolloner2020-11-201-2/+2
|
* Fixed #31842 -- Added DEFAULT_HASHING_ALGORITHM transitional setting.Mariusz Felisiak2020-08-041-0/+13
| | | | | | | | | 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.
* Fixed #31790 -- Fixed setting SameSite and Secure cookies flags in ↵Mariusz Felisiak2020-07-161-0/+5
| | | | | | | | 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.
* Refs #26601 -- Deprecated passing None as get_response arg to middleware ↵Claude Paroz2020-02-181-4/+1
| | | | | | | | | 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>
* Fixed #27604 -- Used the cookie signer to sign message cookies.Claude Paroz2020-02-041-0/+11
| | | | Co-authored-by: Craig Anderson <craiga@craiga.id.au>
* Refs #22426 -- Removed pre-Django 1.5 messages compatibility code and test.Claude Paroz2020-01-311-21/+0
| | | This reverts commit f286721f7fdc2202f77a5f4d650d9d0779b86811.
* Added tests for middlewares' checks.Sergey Fedoseev2019-10-231-0/+10
|
* Fixed #30651 -- Made __eq__() methods return NotImplemented for not ↵ElizabethU2019-10-011-0/+3
| | | | | | | | | 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.
* Refs #30651 -- Added tests for Message.__eq__().Mariusz Felisiak2019-10-011-0/+14
|
* Updated test URL patterns to use path() and re_path().Tim Graham2018-12-311-8/+9
|
* Made reused RequestFactory instances class attributes.Simon Charette2018-11-271-1/+2
|
* Fixed #27863 -- Added support for the SameSite cookie flag.Alex Gaynor2018-04-131-0/+2
| | | Thanks Alex Gaynor for contributing to the patch.
* Fixed imports per isort 4.3.0.Mariusz Felisiak2018-02-011-1/+0
|
* Fixed #28996 -- Simplified some boolean constructs and removed trivial ↵Дилян Палаузов2018-01-121-1/+1
| | | | continue statements.
* Fixed #28965 -- Updated Set-Cookie's Expires date format to follow RFC 7231.Alexey2018-01-021-1/+1
|
* Corrected type of MESSAGE_TAGS setting override in tests.Nick Pope2017-12-081-1/+1
|
* Fixed #28249 -- Removed unnecessary dict.keys() calls.Jon Dufresne2017-05-271-1/+1
| | | iter(dict) is equivalent to iter(dict.keys()).
* Complemented message storage test with explicit None extra_tags valueClaude Paroz2017-05-101-1/+2
|
* Imported django.http classes instead of django.http.Asif Saifuddin Auvi2017-02-272-6/+6
|
* Converted usage of ugettext* functions to their gettext* aliasesClaude Paroz2017-02-071-2/+2
| | | | Thanks Tim Graham for the review.
* Refs #23919 -- Replaced super(ClassName, self) with super().chillaranand2017-01-254-6/+6
|
* Refs #23919 -- Stopped inheriting from object to define new style classes.Simon Charette2017-01-192-3/+3
|
* Fixed #27688 -- Made messages' add_message() request check use ducktyping.Raffaele Salmaso2017-01-091-0/+21
|
* Cosmetic edits for messages_tests.Tim Graham2017-01-058-86/+45
|
* Refs #27392 -- Removed "Tests that", "Ensures that", etc. from test docstrings.za2016-11-104-41/+27
|
* Fixed #26747 -- Used more specific assertions in the Django test suite.Jon Dufresne2016-06-161-2/+2
|
* Fixed #26601 -- Improved middleware per DEP 0005.Florian Apolloner2016-05-171-2/+2
| | | | | Thanks Tim Graham for polishing the patch, updating the tests, and writing documentation. Thanks Carl Meyer for shepherding the DEP.
* Fixed E128 flake8 warnings in tests/.Tim Graham2016-04-082-11/+6
|
* Refs #26022 -- Used context manager version of assertRaises in tests.Hasan2016-01-291-2/+2
|
* Fixed #26013 -- Moved django.core.urlresolvers to django.urls.Marten Kenbeek2015-12-313-3/+3
| | | | Thanks to Tim Graham for the review.
* Refs #24652 -- Used SimpleTestCase where appropriate.Simon Charette2015-05-204-8/+8
|
* Moved contrib.messages tests out of contrib.Tim Graham2015-02-119-0/+961