summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGerman M. Bravo <german.mb@deipi.com>2013-08-18 13:08:53 -0500
committerGerman M. Bravo <german.mb@deipi.com>2013-08-18 13:08:53 -0500
commit9fa95b373c2b43c6e0852aff82ec4c31821a7742 (patch)
tree8d9409305a2d36ef394e7c8a4b5432ab9d1cd2d6
parent0730ed50caab33eb381aefcb6947f10fe4447bf1 (diff)
downloadpyscss-9fa95b373c2b43c6e0852aff82ec4c31821a7742.tar.gz
Add static root path to tests
-rw-r--r--scss/tests/test_files.py5
1 files changed, 3 insertions, 2 deletions
diff --git a/scss/tests/test_files.py b/scss/tests/test_files.py
index 1972bb4..8a90764 100644
--- a/scss/tests/test_files.py
+++ b/scss/tests/test_files.py
@@ -14,7 +14,7 @@ import os.path
import logging
import pytest
-from scss import Scss
+import scss
console = logging.StreamHandler()
@@ -35,8 +35,9 @@ def test_pair_programmatic(scss_file_pair):
directory, _ = os.path.split(scss_fn)
include_dir = os.path.join(directory, 'include')
+ scss.config.STATIC_ROOT = os.path.join(directory, 'static')
- compiler = Scss(scss_opts=dict(compress=0), search_paths=[include_dir])
+ compiler = scss.Scss(scss_opts=dict(compress=0), search_paths=[include_dir])
actual = compiler.compile(source)
# Normalize leading and trailing newlines