From e68baf386219ab64539ba5cef628811be03fdb84 Mon Sep 17 00:00:00 2001 From: Дилян Палаузов Date: Mon, 6 Nov 2017 22:11:39 -0500 Subject: [2.0.x] Fixed #28776 -- Fixed a/an/and typos in docs and comments. Backport of 6c0042430e3618ce5c276d195d92a6b884daa3a3 from master --- tests/staticfiles_tests/project/documents/cached/css/fonts/font.eot | 2 +- tests/staticfiles_tests/test_storage.py | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) (limited to 'tests/staticfiles_tests') diff --git a/tests/staticfiles_tests/project/documents/cached/css/fonts/font.eot b/tests/staticfiles_tests/project/documents/cached/css/fonts/font.eot index 7c58b2e622..fdd7138c52 100644 --- a/tests/staticfiles_tests/project/documents/cached/css/fonts/font.eot +++ b/tests/staticfiles_tests/project/documents/cached/css/fonts/font.eot @@ -1 +1 @@ -not really a EOT ;) \ No newline at end of file +not really an EOT ;) \ No newline at end of file diff --git a/tests/staticfiles_tests/test_storage.py b/tests/staticfiles_tests/test_storage.py index 12d4c85c01..318da6a226 100644 --- a/tests/staticfiles_tests/test_storage.py +++ b/tests/staticfiles_tests/test_storage.py @@ -96,10 +96,10 @@ 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.c4e6753b52d3.css") + self.assertEqual(relpath, "cached/css/fragments.a60c0e74834f.css") with storage.staticfiles_storage.open(relpath) as relfile: content = relfile.read() - self.assertIn(b'fonts/font.a4b0478549d0.eot?#iefix', content) + self.assertIn(b'fonts/font.b9b105392eb8.eot?#iefix', content) self.assertIn(b'fonts/font.b8d603e42714.svg#webfontIyfZbseF', content) self.assertIn(b'fonts/font.b8d603e42714.svg#path/to/../../fonts/font.svg', content) self.assertIn(b'data:font/woff;charset=utf-8;base64,d09GRgABAAAAADJoAA0AAAAAR2QAAQAAAAAAAAAAAAA', content) -- cgit v1.3