Skip to content

Commit

Permalink
Fixed syntax of CSS file used in tests.
Browse files Browse the repository at this point in the history
  • Loading branch information
knyghty authored and sarahboyce committed Jul 11, 2024
1 parent b909853 commit 7264d7f
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
Original file line number Diff line number Diff line change
@@ -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 {
Expand Down
2 changes: 1 addition & 1 deletion tests/staticfiles_tests/test_storage.py
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ def test_path_with_fragment(self):

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)
Expand Down

0 comments on commit 7264d7f

Please sign in to comment.