diff options
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>""", ) |
