From b24e7638465867a206f3654f61b6fb0abcc96022 Mon Sep 17 00:00:00 2001 From: daniel a rios Date: Wed, 19 Jun 2019 10:59:55 +0200 Subject: [PATCH] Added tests for terminated path with optional arguments in django.urls.reverse(). --- tests/urlpatterns_reverse/tests.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/tests/urlpatterns_reverse/tests.py b/tests/urlpatterns_reverse/tests.py index ba8cbedf4a..d26923ab9d 100644 --- a/tests/urlpatterns_reverse/tests.py +++ b/tests/urlpatterns_reverse/tests.py @@ -180,6 +180,8 @@ test_data = ( ('named_optional', '/optional/1/', [], {'arg1': 1}), ('named_optional', '/optional/1/2/', [1, 2], {}), ('named_optional', '/optional/1/2/', [], {'arg1': 1, 'arg2': 2}), + ('named_optional_terminated', '/optional/1/', [1], {}), + ('named_optional_terminated', '/optional/1/', [], {'arg1': 1}), ('named_optional_terminated', '/optional/1/2/', [1, 2], {}), ('named_optional_terminated', '/optional/1/2/', [], {'arg1': 1, 'arg2': 2}), ('hardcoded', '/hardcoded/', [], {}),