summaryrefslogtreecommitdiff
path: root/django/test
diff options
context:
space:
mode:
authorDavid Smith <smithdc@gmail.com>2020-07-24 07:25:47 +0100
committerMariusz Felisiak <felisiak.mariusz@gmail.com>2020-07-30 10:58:59 +0200
commite74b3d724e5ddfef96d1d66bd1c58e7aae26fc85 (patch)
treee478c6d04bbd8b8e1059d67e4e34e61a7666cc58 /django/test
parent1173db4a16bb2938ba62a6cd50372a76a7f9e05f (diff)
Bumped minimum isort version to 5.1.0.
Fixed inner imports per isort 5. isort 5.0.0 to 5.1.0 was unstable.
Diffstat (limited to 'django/test')
-rw-r--r--django/test/client.py1
-rw-r--r--django/test/selenium.py4
-rw-r--r--django/test/signals.py4
3 files changed, 7 insertions, 2 deletions
diff --git a/django/test/client.py b/django/test/client.py
index ce74a5fe53..41fe9e627b 100644
--- a/django/test/client.py
+++ b/django/test/client.py
@@ -611,6 +611,7 @@ class ClientMixin:
def _login(self, user, backend=None):
from django.contrib.auth import login
+
# Create a fake request to store login details.
request = HttpRequest()
if self.session:
diff --git a/django/test/selenium.py b/django/test/selenium.py
index a114f77d14..97a7840fea 100644
--- a/django/test/selenium.py
+++ b/django/test/selenium.py
@@ -70,7 +70,9 @@ class SeleniumTestCaseBase(type(LiveServerTestCase)):
@classmethod
def get_capability(cls, browser):
- from selenium.webdriver.common.desired_capabilities import DesiredCapabilities
+ from selenium.webdriver.common.desired_capabilities import (
+ DesiredCapabilities,
+ )
return getattr(DesiredCapabilities, browser.upper())
def create_options(self):
diff --git a/django/test/signals.py b/django/test/signals.py
index 2ddb425f4c..e1df2accf6 100644
--- a/django/test/signals.py
+++ b/django/test/signals.py
@@ -175,7 +175,9 @@ def static_finders_changed(**kwargs):
@receiver(setting_changed)
def auth_password_validators_changed(**kwargs):
if kwargs['setting'] == 'AUTH_PASSWORD_VALIDATORS':
- from django.contrib.auth.password_validation import get_default_password_validators
+ from django.contrib.auth.password_validation import (
+ get_default_password_validators,
+ )
get_default_password_validators.cache_clear()