diff options
| author | Radomir Dopieralski <openstack@sheep.art.pl> | 2014-09-12 13:15:14 +0200 |
|---|---|---|
| committer | Radomir Dopieralski <openstack@sheep.art.pl> | 2014-09-12 13:27:11 +0200 |
| commit | 187a7a72bf72370c739f3675bef84532e524eaf1 (patch) | |
| tree | 68df0b53a67b65292c3bf3f847cb3cd69bd3a7da /tests | |
| parent | 27ad25016dc17f99112e22f44aa961c12cf25c03 (diff) | |
| download | django-pyscss-187a7a72bf72370c739f3675bef84532e524eaf1.tar.gz | |
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``.
Diffstat (limited to 'tests')
| -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)) |
