mirror of
https://github.com/django/django.git
synced 2025-10-09 10:10:28 +00:00
Fixed E305 flake8 warnings.
This commit is contained in:
parent
6072de727f
commit
967be82443
114 changed files with 360 additions and 0 deletions
|
@ -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)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue