Skip to content

Commit

Permalink
"Merge pull request #381 from john2x/fix-tests\n\nFix unit tests"
Browse files Browse the repository at this point in the history
  • Loading branch information
miracle2k committed Jan 24, 2015
2 parents d0a6aeb + 61db212 commit 27f3a15
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions tests/test_filters.py
Original file line number Diff line number Diff line change
Expand Up @@ -838,7 +838,7 @@ def test_import(self):
''',
'foo.less': '@c: red;'})
self.mkbundle('import.less', filters='less', output='out.css').build()
assert self.get('out.css') == 'span {\n color: #ff0000;\n}\n'
assert self.get('out.css') == 'span {\n color: red;\n}\n'

def test_run_in_debug_mode(self):
"""A setting can be used to make less not run in debug."""
Expand All @@ -857,7 +857,7 @@ def test_include_path(self):
'extra/path/extra.less': '@c: red;'})
self.env.config['less_paths'] = ['extra/path']
self.mkbundle('import.less', filters='less', output='out.css').build()
assert self.get('out.css') == 'span {\n color: #ff0000;\n}\n'
assert self.get('out.css') == 'span {\n color: red;\n}\n'

def test_include_path_order(self):
'''It should preserve extra include paths order'''
Expand All @@ -870,7 +870,7 @@ def test_include_path_order(self):
'other/path/extra.less': '@c: blue;'})
self.env.config['less_paths'] = ['extra/path', 'other/path']
self.mkbundle('import.less', filters='less', output='out.css').build()
assert self.get('out.css') == 'span {\n color: #ff0000;\n}\n'
assert self.get('out.css') == 'span {\n color: red;\n}\n'



Expand Down Expand Up @@ -1040,7 +1040,7 @@ def test(self):
def test_compressed(self):
libsass = get_filter('libsass', style='compressed')
self.mkbundle('foo.scss', filters=libsass, output='out.css').build()
assert self.get('out.css') == 'h1{color:red;}a{color:#ff8000;}'
assert self.get('out.css') == 'h1{color:red}a{color:#ff8000}'


class TestCompass(TempEnvironmentHelper):
Expand Down

0 comments on commit 27f3a15

Please sign in to comment.