From 9c19aff7c7561e3a82978a272ecdaad40dda5c00 Mon Sep 17 00:00:00 2001 From: django-bot Date: Thu, 3 Feb 2022 20:24:19 +0100 Subject: Refs #33476 -- Reformatted code with Black. --- tests/staticfiles_tests/test_forms.py | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) (limited to 'tests/staticfiles_tests/test_forms.py') diff --git a/tests/staticfiles_tests/test_forms.py b/tests/staticfiles_tests/test_forms.py index fadbe6e1d5..d95fed43cc 100644 --- a/tests/staticfiles_tests/test_forms.py +++ b/tests/staticfiles_tests/test_forms.py @@ -8,23 +8,23 @@ from django.test import SimpleTestCase, override_settings class StaticTestStorage(storage.StaticFilesStorage): def url(self, name): - return urljoin('https://example.com/assets/', name) + return urljoin("https://example.com/assets/", name) @override_settings( - STATIC_URL='http://media.example.com/static/', - INSTALLED_APPS=('django.contrib.staticfiles',), - STATICFILES_STORAGE='staticfiles_tests.test_forms.StaticTestStorage', + STATIC_URL="http://media.example.com/static/", + INSTALLED_APPS=("django.contrib.staticfiles",), + STATICFILES_STORAGE="staticfiles_tests.test_forms.StaticTestStorage", ) class StaticFilesFormsMediaTestCase(SimpleTestCase): def test_absolute_url(self): m = Media( - css={'all': ('path/to/css1', '/path/to/css2')}, + css={"all": ("path/to/css1", "/path/to/css2")}, js=( - '/path/to/js1', - 'http://media.other.com/path/to/js2', - 'https://secure.other.com/path/to/js3', - static('relative/path/to/js4'), + "/path/to/js1", + "http://media.other.com/path/to/js2", + "https://secure.other.com/path/to/js3", + static("relative/path/to/js4"), ), ) self.assertEqual( @@ -34,5 +34,5 @@ class StaticFilesFormsMediaTestCase(SimpleTestCase): -""" +""", ) -- cgit v1.3