diff options
author | Antoine Catton <acatton@fusionbox.com> | 2014-08-04 11:11:14 +0200 |
---|---|---|
committer | Antoine Catton <acatton@fusionbox.com> | 2014-08-04 11:11:14 +0200 |
commit | 56c7db6e2b09f8913da9ee0d8d66cb38c11cdd32 (patch) | |
tree | 0e203e82724d7a3f9a8501d67b0e8c01ca9f2dd0 /tests | |
parent | d7f1b849a04437a04443d68957717179b6b4d7d3 (diff) | |
download | django-pyscss-test-for-path-conflicts.tar.gz |
Add test for path conflictstest-for-path-conflicts
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): |