From 7264d7f7509f875d2676e40924092c71b5c5b411 Mon Sep 17 00:00:00 2001 From: Tom Carrick Date: Sun, 30 Jun 2024 11:46:56 +0200 Subject: [PATCH] Fixed syntax of CSS file used in tests. --- .../project/documents/cached/css/fragments.css | 5 +++-- tests/staticfiles_tests/test_storage.py | 2 +- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/tests/staticfiles_tests/project/documents/cached/css/fragments.css b/tests/staticfiles_tests/project/documents/cached/css/fragments.css index 533d7617aa..846a9df288 100644 --- a/tests/staticfiles_tests/project/documents/cached/css/fragments.css +++ b/tests/staticfiles_tests/project/documents/cached/css/fragments.css @@ -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 { diff --git a/tests/staticfiles_tests/test_storage.py b/tests/staticfiles_tests/test_storage.py index 469d5ec690..030b7dc6db 100644 --- a/tests/staticfiles_tests/test_storage.py +++ b/tests/staticfiles_tests/test_storage.py @@ -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)