mirror of
https://github.com/django/django.git
synced 2025-08-31 15:57:45 +00:00
Added tests for terminated path with optional arguments in django.urls.reverse().
This commit is contained in:
parent
e286711879
commit
b24e763846
1 changed files with 2 additions and 0 deletions
|
@ -180,6 +180,8 @@ test_data = (
|
||||||
('named_optional', '/optional/1/', [], {'arg1': 1}),
|
('named_optional', '/optional/1/', [], {'arg1': 1}),
|
||||||
('named_optional', '/optional/1/2/', [1, 2], {}),
|
('named_optional', '/optional/1/2/', [1, 2], {}),
|
||||||
('named_optional', '/optional/1/2/', [], {'arg1': 1, 'arg2': 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/', [1, 2], {}),
|
||||||
('named_optional_terminated', '/optional/1/2/', [], {'arg1': 1, 'arg2': 2}),
|
('named_optional_terminated', '/optional/1/2/', [], {'arg1': 1, 'arg2': 2}),
|
||||||
('hardcoded', '/hardcoded/', [], {}),
|
('hardcoded', '/hardcoded/', [], {}),
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue