mirror of
https://github.com/django/django.git
synced 2025-10-26 15:16:09 +00:00
Removed import * in tests.
Thanks to flake8 path/to/file.py | awk -F ' ' '{ print $5 }' | sort | uniq
This commit is contained in:
@@ -4,4 +4,4 @@ warnings.warn(
|
||||
"The django.contrib.admin.util module has been renamed. "
|
||||
"Use django.contrib.admin.utils instead.", PendingDeprecationWarning)
|
||||
|
||||
from django.contrib.admin.utils import *
|
||||
from django.contrib.admin.utils import * # NOQA
|
||||
|
||||
@@ -12,7 +12,9 @@ from django.test import TestCase
|
||||
from django.test.utils import override_settings
|
||||
from django.utils._os import upath
|
||||
|
||||
from django.contrib.formtools.tests.forms import *
|
||||
from django.contrib.formtools.tests.forms import (
|
||||
HashTestBlankForm, HashTestForm, TestForm,
|
||||
)
|
||||
|
||||
success_string = "Done was called!"
|
||||
success_string_encoded = success_string.encode()
|
||||
|
||||
@@ -4,4 +4,4 @@ warnings.warn(
|
||||
"The django.contrib.gis.db.backends.util module has been renamed. "
|
||||
"Use django.contrib.gis.db.backends.utils instead.", PendingDeprecationWarning)
|
||||
|
||||
from django.contrib.gis.db.backends.utils import *
|
||||
from django.contrib.gis.db.backends.utils import * # NOQA
|
||||
|
||||
@@ -8,7 +8,7 @@ from unittest import skipUnless
|
||||
from .. import HAS_GEOS
|
||||
|
||||
if HAS_GEOS:
|
||||
from .. import *
|
||||
from .. import fromstr, LinearRing, LineString, MultiPoint, Point, Polygon
|
||||
from ..error import GEOSIndexError
|
||||
|
||||
|
||||
|
||||
@@ -3,7 +3,7 @@ from __future__ import unicode_literals
|
||||
|
||||
import unittest
|
||||
|
||||
from django.contrib.webdesign.lorem_ipsum import *
|
||||
from django.contrib.webdesign.lorem_ipsum import paragraphs, words
|
||||
from django.template import loader, Context
|
||||
|
||||
|
||||
|
||||
@@ -4,4 +4,4 @@ warnings.warn(
|
||||
"The django.db.backends.util module has been renamed. "
|
||||
"Use django.db.backends.utils instead.", PendingDeprecationWarning)
|
||||
|
||||
from django.db.backends.utils import *
|
||||
from django.db.backends.utils import * # NOQA
|
||||
|
||||
@@ -4,4 +4,4 @@ warnings.warn(
|
||||
"The django.forms.util module has been renamed. "
|
||||
"Use django.forms.utils instead.", PendingDeprecationWarning)
|
||||
|
||||
from django.forms.utils import *
|
||||
from django.forms.utils import * # NOQA
|
||||
|
||||
Reference in New Issue
Block a user