Skip to content

Commit

Permalink
Make PyScss test optional if module not installed.
Browse files Browse the repository at this point in the history
  • Loading branch information
miracle2k committed Nov 19, 2012
1 parent 22a96b4 commit 5075b91
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions tests/test_filters.py
Original file line number Original file line Diff line number Diff line change
@@ -1,4 +1,5 @@
from nose.tools import assert_raises from nose.tools import assert_raises
from nose import SkipTest
from helpers import TempEnvironmentHelper from helpers import TempEnvironmentHelper




Expand All @@ -8,6 +9,11 @@ def test_pyscss(self):
"""This filter used to make trouble because if required """This filter used to make trouble because if required
Environment.url and Environment.directory to be set. Environment.url and Environment.directory to be set.
""" """
try:
import scss
except ImportError:
raise SkipTest()

self.create_files({'foo': ''}) self.create_files({'foo': ''})
bundle = self.mkbundle('foo', filters='pyscss', output='out') bundle = self.mkbundle('foo', filters='pyscss', output='out')


Expand Down

0 comments on commit 5075b91

Please sign in to comment.