diff options
| author | django-bot <ops@djangoproject.com> | 2022-02-08 12:09:55 +0100 |
|---|---|---|
| committer | Mariusz Felisiak <felisiak.mariusz@gmail.com> | 2022-02-08 12:15:38 +0100 |
| commit | 6a682b38e75d4c975b4c4493565a59f1bc14397c (patch) | |
| tree | 0bd9cda550bea26238656d9f120d769e8b41bb9e /tests/staticfiles_tests/test_forms.py | |
| parent | e73ce08888e6f34d3f050377cfd2fbb733be94a9 (diff) | |
[4.0.x] Refs #33476 -- Reformatted code with Black.
Backport of 9c19aff7c7561e3a82978a272ecdaad40dda5c00 from main.
Diffstat (limited to 'tests/staticfiles_tests/test_forms.py')
| -rw-r--r-- | tests/staticfiles_tests/test_forms.py | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/tests/staticfiles_tests/test_forms.py b/tests/staticfiles_tests/test_forms.py index 1fbcbe164c..b0c5c19a0e 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): <script src="/path/to/js1"></script> <script src="http://media.other.com/path/to/js2"></script> <script src="https://secure.other.com/path/to/js3"></script> -<script src="https://example.com/assets/relative/path/to/js4"></script>""" +<script src="https://example.com/assets/relative/path/to/js4"></script>""", ) |
