Fixed E305 flake8 warnings.

This commit is contained in:
Ramin Farajpour Cami 2016-11-12 20:41:23 +03:30 committed by Tim Graham
parent 6072de727f
commit 967be82443
114 changed files with 360 additions and 0 deletions

View file

@ -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)