mirror of
				https://github.com/django/django.git
				synced 2025-10-31 09:41:08 +00:00 
			
		
		
		
	Fixed syntax of CSS file used in tests.
This commit is contained in:
		| @@ -1,7 +1,8 @@ | |||||||
| @font-face { | @font-face { | ||||||
|  |     font-family: "test"; | ||||||
|     src: url('fonts/font.eot?#iefix') format('embedded-opentype'), |     src: url('fonts/font.eot?#iefix') format('embedded-opentype'), | ||||||
|          url('fonts/font.svg#webfontIyfZbseF') format('svg'); |          url('fonts/font.svg#webfontIyfZbseF') format('svg'), | ||||||
|          url('fonts/font.svg#path/to/../../fonts/font.svg') format('svg'); |          url('fonts/font.svg#path/to/../../fonts/font.svg') format('svg'), | ||||||
|          url('data:font/woff;charset=utf-8;base64,d09GRgABAAAAADJoAA0AAAAAR2QAAQAAAAAAAAAAAAA'); |          url('data:font/woff;charset=utf-8;base64,d09GRgABAAAAADJoAA0AAAAAR2QAAQAAAAAAAAAAAAA'); | ||||||
| } | } | ||||||
| div { | div { | ||||||
|   | |||||||
| @@ -101,7 +101,7 @@ class TestHashedFiles: | |||||||
|  |  | ||||||
|     def test_path_with_querystring_and_fragment(self): |     def test_path_with_querystring_and_fragment(self): | ||||||
|         relpath = self.hashed_file_path("cached/css/fragments.css") |         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: |         with storage.staticfiles_storage.open(relpath) as relfile: | ||||||
|             content = relfile.read() |             content = relfile.read() | ||||||
|             self.assertIn(b"fonts/font.b9b105392eb8.eot?#iefix", content) |             self.assertIn(b"fonts/font.b9b105392eb8.eot?#iefix", content) | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user