summaryrefslogtreecommitdiff
path: root/tests/validators
diff options
context:
space:
mode:
authorYash Saini <yash.saini275@gmail.com>2020-05-08 20:49:14 +0200
committerMariusz Felisiak <felisiak.mariusz@gmail.com>2020-05-08 20:50:25 +0200
commitbda6ade7b7640b2cea80c44fe28a9ce39fe82f8a (patch)
tree69e3bf07c855b64d303ef3fd1720b639f01333f7 /tests/validators
parent87faeee4e0c0eb3937e2e575794f4512e513d214 (diff)
Added URLValidator test for missing scheme.
Diffstat (limited to 'tests/validators')
-rw-r--r--tests/validators/tests.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/tests/validators/tests.py b/tests/validators/tests.py
index 295c6c899f..baa744a9a6 100644
--- a/tests/validators/tests.py
+++ b/tests/validators/tests.py
@@ -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),