mirror of
https://github.com/django/django.git
synced 2025-10-09 10:10:28 +00:00
Fixed #25635 -- Made URLValidator allow '+' in scheme.
This commit is contained in:
parent
5ce84b8044
commit
06627ef2ca
2 changed files with 3 additions and 2 deletions
|
@ -22,7 +22,7 @@ from django.test.utils import str_prefix
|
|||
from django.utils._os import upath
|
||||
|
||||
NOW = datetime.now()
|
||||
EXTENDED_SCHEMES = ['http', 'https', 'ftp', 'ftps', 'git', 'file']
|
||||
EXTENDED_SCHEMES = ['http', 'https', 'ftp', 'ftps', 'git', 'file', 'git+ssh']
|
||||
|
||||
TEST_DATA = [
|
||||
# (validator, value, expected),
|
||||
|
@ -205,6 +205,7 @@ TEST_DATA = [
|
|||
|
||||
(URLValidator(EXTENDED_SCHEMES), 'file://localhost/path', None),
|
||||
(URLValidator(EXTENDED_SCHEMES), 'git://example.com/', None),
|
||||
(URLValidator(EXTENDED_SCHEMES), 'git+ssh://git@github.com/example/hg-git.git', None),
|
||||
|
||||
(URLValidator(EXTENDED_SCHEMES), 'git://-invalid.com', ValidationError),
|
||||
# Trailing newlines not accepted
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue