diff options
Diffstat (limited to 'tests')
-rw-r--r-- | tests/test_scss.py | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/tests/test_scss.py b/tests/test_scss.py index bc9c6ef..e2e8748 100644 --- a/tests/test_scss.py +++ b/tests/test_scss.py @@ -29,6 +29,9 @@ with open(os.path.join(settings.BASE_DIR, 'testproject', 'static', 'css', 'css_f with open(os.path.join(settings.BASE_DIR, 'testproject', 'static', 'css', '_baz.scss')) as f: BAZ_CONTENTS = f.read() +with open(os.path.join(settings.BASE_DIR, 'testproject', 'static', 'css', 'path_conflict.scss')) as f: + PATH_CONFLICT_CONTENTS = f.read() + class CompilerTestMixin(object): def setUp(self): @@ -84,6 +87,10 @@ class ImportTestMixin(CompilerTestMixin): actual = self.compiler.compile(scss_string='@import "/css/baz";') self.assertEqual(clean_css(actual), clean_css(BAZ_CONTENTS)) + def test_import_conflict(self): + actual = self.compiler.compile(scss_string='@import "/css/path_conflict";') + self.assertEqual(clean_css(actual), clean_css(PATH_CONFLICT_CONTENTS)) + @override_settings(DEBUG=True) class FindersImportTest(ImportTestMixin, TestCase): |