diff options
| author | Radomir Dopieralski <openstack@sheep.art.pl> | 2014-09-12 13:15:14 +0200 |
|---|---|---|
| committer | Antoine Catton <acatton@fusionbox.com> | 2014-09-15 12:13:24 +0200 |
| commit | 9fc62d06df453cb872f1a0007502821b6a5025b9 (patch) | |
| tree | 53dfc812fa80e6a39ffab04ddcd29b4b3e924a97 /tests/test_scss.py | |
| parent | abe5e83560b981a09293a4670e7c924425faba7c (diff) | |
| download | django-pyscss-9fc62d06df453cb872f1a0007502821b6a5025b9.tar.gz | |
[1.0.x] Fix #14, respect storage.prefix when looking for files
The function ``find_all_files`` ignored ``storage.prefix`` when looking
for files, which made it fail when a prefix was used in
``STATICFILES_DIRS``.
(cherry picked from commit 187a7a72bf72370c739f3675bef84532e524eaf1)
Diffstat (limited to 'tests/test_scss.py')
| -rw-r--r-- | tests/test_scss.py | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/tests/test_scss.py b/tests/test_scss.py index e2e8748..78cd46e 100644 --- a/tests/test_scss.py +++ b/tests/test_scss.py @@ -47,6 +47,10 @@ class ImportTestMixin(CompilerTestMixin): actual = self.compiler.compile(scss_string='@import "/css/foo.scss";') self.assertEqual(clean_css(actual), clean_css(FOO_CONTENTS)) + def test_import_from_staticfiles_dirs_prefixed(self): + actual = self.compiler.compile(scss_string='@import "/css_prefix/baz.scss";') + self.assertEqual(clean_css(actual), clean_css(FOO_CONTENTS)) + def test_import_from_staticfiles_dirs_relative(self): actual = self.compiler.compile(scss_string='@import "css/foo.scss";') self.assertEqual(clean_css(actual), clean_css(FOO_CONTENTS)) |
