diff options
| author | django-bot <ops@djangoproject.com> | 2022-02-03 20:24:19 +0100 |
|---|---|---|
| committer | Mariusz Felisiak <felisiak.mariusz@gmail.com> | 2022-02-07 20:37:05 +0100 |
| commit | 9c19aff7c7561e3a82978a272ecdaad40dda5c00 (patch) | |
| tree | f0506b668a013d0063e5fba3dbf4863b466713ba /tests/staticfiles_tests/test_forms.py | |
| parent | f68fa8b45dfac545cfc4111d4e52804c86db68d3 (diff) | |
Refs #33476 -- Reformatted code with Black.
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 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): <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>""", ) |
