1
0
mirror of https://github.com/django/django.git synced 2024-12-22 17:16:24 +00:00

Fixed syntax of CSS file used in tests.

This commit is contained in:
Tom Carrick 2024-06-30 11:46:56 +02:00 committed by Sarah Boyce
parent b9098538a9
commit 7264d7f750
2 changed files with 4 additions and 3 deletions

View File

@ -1,7 +1,8 @@
@font-face {
font-family: "test";
src: url('fonts/font.eot?#iefix') format('embedded-opentype'),
url('fonts/font.svg#webfontIyfZbseF') format('svg');
url('fonts/font.svg#path/to/../../fonts/font.svg') format('svg');
url('fonts/font.svg#webfontIyfZbseF') format('svg'),
url('fonts/font.svg#path/to/../../fonts/font.svg') format('svg'),
url('data:font/woff;charset=utf-8;base64,d09GRgABAAAAADJoAA0AAAAAR2QAAQAAAAAAAAAAAAA');
}
div {

View File

@ -101,7 +101,7 @@ class TestHashedFiles:
def test_path_with_querystring_and_fragment(self):
relpath = self.hashed_file_path("cached/css/fragments.css")
self.assertEqual(relpath, "cached/css/fragments.a60c0e74834f.css")
self.assertEqual(relpath, "cached/css/fragments.7fe344dee895.css")
with storage.staticfiles_storage.open(relpath) as relfile:
content = relfile.read()
self.assertIn(b"fonts/font.b9b105392eb8.eot?#iefix", content)