summaryrefslogtreecommitdiff
path: root/tests/urlpatterns_reverse
Commit message (Collapse)AuthorAgeFilesLines
* Fixed #33955, Fixed #33971 -- Reverted "Fixed #32565 -- Moved internal ↵Mariusz Felisiak2022-09-011-0/+21
| | | | | | | URLResolver view-strings mapping to admindocs." This reverts commit 7f3cfaa12b28d15c0ca78bb692bfd6e59d17bff1. Thanks Tom Carrick and Greg Kaleka for reports.
* Fixed #32565 -- Moved internal URLResolver view-strings mapping to admindocs.Alokik Vijay2022-05-171-21/+0
| | | | | | Moved the functionality of URLResolver._is_callback(), URLResolver._callback_strs, URLPattern.lookup_str() to django.contrib.admindocs.
* Fixed #16406 -- Added ResolveMatch.captured_kwargs and extra_kwargs.Alokik Vijay2022-03-293-2/+37
| | | | Thanks Florian Apolloner for the review and implementation idea.
* Refs #33476 -- Refactored code to strictly match 88 characters line length.Mariusz Felisiak2022-02-071-5/+18
|
* Refs #33476 -- Reformatted code with Black.django-bot2022-02-0726-734/+1256
|
* Fixed #33426 -- Fixed ResolverMatch.__repr_() for class-based views.Keryn Knight2022-01-101-0/+9
| | | | Regression in 7c08f26bf0439c1ed593b51b51ad847f7e262bc1.
* Fixed #23895 -- Prevented pickling of ResolverMatch.Jonathan Davis2021-07-291-0/+7
| | | | Pickling a ResolverMatch did not work correctly in many cases, especially with CBVs and URLResolvers in the list of tried URL paths.
* Fixed #32870 -- Improved error message when URLconf is empty.Igor Fernandes2021-06-221-4/+6
|
* Fixed #32572 -- Improved ResolverMatch.__repr__().Nick Pope2021-03-291-2/+22
| | | | | | | When a partial function was passed as the view, the __repr__() would show the `func` argument as `functools.partial` which isn't very helpful, especially as it doesn't reveal the underlying function or arguments provided.
* Removed unused param_dict return from URLResolver.resolve_error_handler().Adam Johnson2020-06-221-4/+2
| | | Unused since its introduction in ed114e15106192b22ebb78ef5bf5bce72b419d13.
* Fixed #31114 -- Fixed HttpRequest.build_absolute_uri() crash with ↵Jon Dufresne2019-12-271-1/+11
| | | | reverse_lazy() locations.
* Refs #29983 -- Added support for using pathlib.Path in all settings.Jon Dufresne2019-11-071-0/+6
|
* Added tests for terminated path with optional arguments in ↵daniel a rios2019-06-241-0/+2
| | | | django.urls.reverse().
* Cleaned up exception message checking in some tests.Jon Dufresne2019-03-151-3/+7
|
* Removed default empty content argument from HttpResponse calls.Jon Dufresne2019-02-091-4/+4
|
* Simplified temporary directory handling in AdminScriptTestCase.Jon Dufresne2019-02-051-3/+1
| | | | | | | | Use tempfile.TemporaryDirectory() in AdminScriptTestCase.setUp() to create and destroy a temporary directory for each test. It removes the need for individual tests to delete files. For test classes that don't use the temporary directory, inherit from SimpleTestCase.
* Updated test URL patterns to use path() and re_path().Tim Graham2018-12-3121-182/+182
|
* Updated a test to reflect the fact that "import *" isn't used in URLconfs ↵Tim Graham2018-12-312-4/+2
| | | | anymore (refs #14675).
* Fixed #28766 -- Added ResolverMatch.route.Benjamin Wohlwend2018-12-061-1/+1
| | | | Co-Authored-By: Xavier Fernandez <xavier.fernandez@polyconseil.fr>
* Added test for ResolverMatch.__repr__().Xavier Fernandez2018-11-301-0/+8
|
* Fixed #29673 -- Reset the URLconf at the end of each request.Matthew Power2018-09-261-1/+8
| | | Co-authored-by: Ross Thorne <rmwthorne@googlemail.com>
* Completed test coverage for django.urls.utils.get_callable().Hasan Ramezani2018-07-191-9/+34
|
* Fixed imports per isort 4.3.0.Mariusz Felisiak2018-02-011-3/+4
|
* Refs #27648 -- Removed support for (iLmsu) regex groups in url() patterns.Tim Graham2017-09-221-33/+0
| | | | Per deprecation timeline.
* Fixed #28593 -- Added a simplified URL routing syntax per DEP 0201.Sjoerd Job Postmus2017-09-202-24/+24
| | | | | | Thanks Aymeric Augustin for shepherding the DEP and patch review. Thanks Marten Kenbeek and Tim Graham for contributing to the code. Thanks Tom Christie, Shai Berger, and Tim Graham for the docs.
* Added a test for mixing args and kwargs in reverse().Tim Graham2017-09-141-0/+5
|
* Refs #28593 -- Moved django.conf.urls.include() to django.urls().Tim Graham2017-09-131-4/+4
| | | | | The old location remains for backwards compatibility. Documentation will be updated separately along with the rest of the URL routing changes.
* Used assertRaisesMessage() to test Django's error messages.Mads Jensen2017-07-291-1/+6
|
* Refs #27804 -- Used subTest() in urlpatterns_reverse tests.Marten Kenbeek2017-07-101-289/+375
|
* Refs #23968 -- Removed unnecessary lists, generators, and tuple calls.Jon Dufresne2017-06-011-24/+24
|
* Fixed #27367 -- Doc'd and tested reversing of URLs with the same name.Robert Roskam2017-02-112-0/+34
| | | | Thanks Reinout van Rees for contributing to the patch.
* Fixed spelling of "nonexistent".Tim Graham2017-02-031-10/+10
|
* Improved test coverage and error messages for conf.urls.__init__.Anton Samarchyan2017-01-271-0/+10
|
* Removed unused variables that are overwritten.Mads Jensen2017-01-251-1/+0
|
* Refs #23919 -- Removed django.test.mock Python 2 compatibility shim.Tim Graham2017-01-201-1/+2
|
* Refs #23919 -- Removed unneeded str() callsClaude Paroz2017-01-201-2/+2
|
* Refs #23919 -- Removed django.utils._os.upath()/npath()/abspathu() usage.Tim Graham2017-01-201-2/+1
| | | These functions do nothing on Python 3.
* Fixed spelling mistakes in code and comments.james mike dupont2017-01-191-1/+1
|
* Refs #23919 -- Stopped inheriting from object to define new style classes.Simon Charette2017-01-194-4/+4
|
* Refs #23919 -- Removed six.<various>_types usageClaude Paroz2017-01-181-8/+0
| | | | Thanks Tim Graham and Simon Charette for the reviews.
* Refs #23919 -- Removed six.PY2/PY3 usageClaude Paroz2017-01-181-8/+1
| | | | Thanks Tim Graham for the review.
* Refs #23919 -- Removed encoding preambles and future importsClaude Paroz2017-01-183-7/+0
|
* Refs #21927 -- Removed include()'s app_name argument per deprecation timeline.Tim Graham2017-01-174-85/+100
| | | | | | | Also removed support for passing a 3-tuple to include() and support for setting an instance namespace without an application namespace. Thanks Marten Kenbeek for completing the patch.
* Fixed #27713 -- Clarified NoReverseMatch error message when no view is found.Marten Kenbeek2017-01-111-2/+25
|
* Fixed #27648 -- Deprecated (iLmsu) regex groups in url() patterns.Tim Graham2016-12-273-4/+33
|
* Fixed #27579 -- Added aliases for Python 3's assertion names in SimpleTestCase.Tim Graham2016-12-071-1/+1
|
* Fixed #27453 -- Avoided unnecessary recompilation of non-translated URL regexes.Carl Meyer2016-11-141-0/+16
|
* Added tests for LocaleRegexProvider.Carl Meyer2016-11-149-0/+81
|
* Fixed E305 flake8 warnings.Ramin Farajpour Cami2016-11-143-0/+4
|
* Refs #27392 -- Removed "Tests that", "Ensures that", etc. from test docstrings.za2016-11-101-10/+8
|