From bda6ade7b7640b2cea80c44fe28a9ce39fe82f8a Mon Sep 17 00:00:00 2001 From: Yash Saini Date: Fri, 8 May 2020 20:49:14 +0200 Subject: [PATCH] Added URLValidator test for missing scheme. --- tests/validators/tests.py | 1 + 1 file changed, 1 insertion(+) 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),