mirror of
https://github.com/django/django.git
synced 2025-08-03 02:23:12 +00:00
Added URLValidator test for missing scheme.
This commit is contained in:
parent
87faeee4e0
commit
bda6ade7b7
1 changed files with 1 additions and 0 deletions
|
@ -222,6 +222,7 @@ TEST_DATA = [
|
|||
(URLValidator(EXTENDED_SCHEMES), 'git+ssh://git@github.com/example/hg-git.git', None),
|
||||
|
||||
(URLValidator(EXTENDED_SCHEMES), 'git://-invalid.com', ValidationError),
|
||||
(URLValidator(), 'no_scheme', ValidationError),
|
||||
# Trailing newlines not accepted
|
||||
(URLValidator(), 'http://www.djangoproject.com/\n', ValidationError),
|
||||
(URLValidator(), 'http://[::ffff:192.9.5.5]\n', ValidationError),
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue