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:
parent
b9098538a9
commit
7264d7f750
@ -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 {
|
||||
|
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user