summaryrefslogtreecommitdiff
path: root/tests/urlpatterns_reverse
AgeCommit message (Collapse)Author
2019-12-27Fixed #31114 -- Fixed HttpRequest.build_absolute_uri() crash with ↵Jon Dufresne
reverse_lazy() locations.
2019-11-07Refs #29983 -- Added support for using pathlib.Path in all settings.Jon Dufresne
2019-06-24Added tests for terminated path with optional arguments in ↵daniel a rios
django.urls.reverse().
2019-03-15Cleaned up exception message checking in some tests.Jon Dufresne
2019-02-09Removed default empty content argument from HttpResponse calls.Jon Dufresne
2019-02-05Simplified temporary directory handling in AdminScriptTestCase.Jon Dufresne
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.
2018-12-31Updated test URL patterns to use path() and re_path().Tim Graham
2018-12-31Updated a test to reflect the fact that "import *" isn't used in URLconfs ↵Tim Graham
anymore (refs #14675).
2018-12-06Fixed #28766 -- Added ResolverMatch.route.Benjamin Wohlwend
Co-Authored-By: Xavier Fernandez <xavier.fernandez@polyconseil.fr>
2018-11-30Added test for ResolverMatch.__repr__().Xavier Fernandez
2018-09-26Fixed #29673 -- Reset the URLconf at the end of each request.Matthew Power
Co-authored-by: Ross Thorne <rmwthorne@googlemail.com>
2018-07-19Completed test coverage for django.urls.utils.get_callable().Hasan Ramezani
2018-02-01Fixed imports per isort 4.3.0.Mariusz Felisiak
2017-09-22Refs #27648 -- Removed support for (iLmsu) regex groups in url() patterns.Tim Graham
Per deprecation timeline.
2017-09-20Fixed #28593 -- Added a simplified URL routing syntax per DEP 0201.Sjoerd Job Postmus
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.
2017-09-14Added a test for mixing args and kwargs in reverse().Tim Graham
2017-09-13Refs #28593 -- Moved django.conf.urls.include() to django.urls().Tim Graham
The old location remains for backwards compatibility. Documentation will be updated separately along with the rest of the URL routing changes.
2017-07-29Used assertRaisesMessage() to test Django's error messages.Mads Jensen
2017-07-10Refs #27804 -- Used subTest() in urlpatterns_reverse tests.Marten Kenbeek
2017-06-01Refs #23968 -- Removed unnecessary lists, generators, and tuple calls.Jon Dufresne
2017-02-11Fixed #27367 -- Doc'd and tested reversing of URLs with the same name.Robert Roskam
Thanks Reinout van Rees for contributing to the patch.
2017-02-03Fixed spelling of "nonexistent".Tim Graham
2017-01-27Improved test coverage and error messages for conf.urls.__init__.Anton Samarchyan
2017-01-25Removed unused variables that are overwritten.Mads Jensen
2017-01-20Refs #23919 -- Removed django.test.mock Python 2 compatibility shim.Tim Graham
2017-01-20Refs #23919 -- Removed unneeded str() callsClaude Paroz
2017-01-20Refs #23919 -- Removed django.utils._os.upath()/npath()/abspathu() usage.Tim Graham
These functions do nothing on Python 3.
2017-01-19Fixed spelling mistakes in code and comments.james mike dupont
2017-01-19Refs #23919 -- Stopped inheriting from object to define new style classes.Simon Charette
2017-01-18Refs #23919 -- Removed six.<various>_types usageClaude Paroz
Thanks Tim Graham and Simon Charette for the reviews.
2017-01-18Refs #23919 -- Removed six.PY2/PY3 usageClaude Paroz
Thanks Tim Graham for the review.
2017-01-18Refs #23919 -- Removed encoding preambles and future importsClaude Paroz
2017-01-17Refs #21927 -- Removed include()'s app_name argument per deprecation timeline.Tim Graham
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.
2017-01-11Fixed #27713 -- Clarified NoReverseMatch error message when no view is found.Marten Kenbeek
2016-12-27Fixed #27648 -- Deprecated (iLmsu) regex groups in url() patterns.Tim Graham
2016-12-07Fixed #27579 -- Added aliases for Python 3's assertion names in SimpleTestCase.Tim Graham
2016-11-14Fixed #27453 -- Avoided unnecessary recompilation of non-translated URL regexes.Carl Meyer
2016-11-14Added tests for LocaleRegexProvider.Carl Meyer
2016-11-14Fixed E305 flake8 warnings.Ramin Farajpour Cami
2016-11-10Refs #27392 -- Removed "Tests that", "Ensures that", etc. from test docstrings.za
2016-08-20Fixed #27018 -- Fixed admindocs crash with a view in a class.Helen Sherwood-Taylor
Generated correct admindocs URLs on Python 3. URLs generate 404s on Python 2, as in older versions of Django.
2016-07-14Fixed #26888 -- Fixed concurrency issue in URL resolver.Marten Kenbeek
Fixed a regression in 625b8e9295d79650208bfb3fca8bf9e6aaf578e4: improper short-circuiting could lead to a KeyError when threads concurrently call RegexURLResolver._populate().
2016-07-01Fixed a urlpatterns_reverse test on Python 2 non-ASCII path.Tim Graham
2016-06-28Replaced use of TestCase.fail() with assertRaises().Tim Graham
Also removed try/except/fail antipattern that hides exceptions.
2016-06-20Refs #22384 -- Readded RegexURLResolver.reverse().Tim Graham
It was removed in 785cc71d5b3300e2702b0b2fc7316e58ca70b563 only because it was untested and unused in Django itself, however, some third-party apps use it.
2016-06-18Fixed #24931 -- Made namespaced RegexURLResolvers populate callback strings.Markus Holtermann
Fixed a regression in 2f16ff5a6cbd71fc6c50e88e4087f3657222e90e. Thanks Tim Graham for the review.
2016-05-17Fixed #26601 -- Improved middleware per DEP 0005.Florian Apolloner
Thanks Tim Graham for polishing the patch, updating the tests, and writing documentation. Thanks Carl Meyer for shepherding the DEP.
2016-04-09Fixed #25847 -- Made User.is_(anonymous|authenticated) properties.Jeremy Lainé
2016-02-06Fixed #26175 -- Removed SHA1 password hashes in tests.Tim Graham
2016-01-29Refs #26022 -- Used context manager version of assertRaisesMessage in tests.Hasan