diff options
author | Ramin Farajpour Cami <ramin.blackhat@gmail.com> | 2016-11-12 20:41:23 +0330 |
---|---|---|
committer | Tim Graham <timograham@gmail.com> | 2016-11-14 12:30:46 -0500 |
commit | 967be82443b5640d61608a89897d8ce2bc44fa54 (patch) | |
tree | 9905e1156e27aa3d1226da3dde1223a5087b0d55 /tests/validators | |
parent | 6072de727f0ffa7bf0aa67aadba5d4589561974d (diff) | |
download | django-967be82443b5640d61608a89897d8ce2bc44fa54.tar.gz |
Fixed E305 flake8 warnings.
Diffstat (limited to 'tests/validators')
-rw-r--r-- | tests/validators/tests.py | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/tests/validators/tests.py b/tests/validators/tests.py index 2475131d28..4ef8a524b1 100644 --- a/tests/validators/tests.py +++ b/tests/validators/tests.py @@ -269,6 +269,7 @@ TEST_DATA = [ def create_path(filename): return os.path.abspath(os.path.join(os.path.dirname(upath(__file__)), filename)) + # Add valid and invalid URL tests. # This only tests the validator without extended schemes. with io.open(create_path('valid_urls.txt'), encoding='utf8') as f: @@ -340,6 +341,7 @@ class TestSimpleValidators(SimpleTestCase): with self.assertRaisesMessage(ValidationError, '"djangoproject.com" has more than 16 characters.'): v('djangoproject.com') + test_counter = 0 for validator, value, expected in TEST_DATA: name, method = create_simple_test_method(validator, expected, value, test_counter) |