Skip to content
This repository was archived by the owner on Oct 24, 2025. It is now read-only.

Commit 42110ae

Browse files
committed
Add regression test for #2
1 parent e8ec15c commit 42110ae

File tree

1 file changed

+19
-0
lines changed

1 file changed

+19
-0
lines changed

sasstests.py

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -192,3 +192,22 @@ def wsgi_sass_middleware():
192192
assert r.data == '/static/not-exists.sass.css'
193193
assert r.mimetype == 'text/plain'
194194
shutil.rmtree(css_dir)
195+
196+
197+
regression = Tests()
198+
199+
200+
@regression.test
201+
def regression_issue_2():
202+
actual = sass.compile(string='''
203+
@media (min-width: 980px) {
204+
a {
205+
color: red;
206+
}
207+
}
208+
''')
209+
normalized = re.sub(r'\s+', '', actual)
210+
assert normalized == '@media(min-width:980px){a{color:red;}}'
211+
212+
213+
suite.register(regression)

0 commit comments

Comments
 (0)