diff options
author | Eevee (Alex Munroe) <eevee.git@veekun.com> | 2014-07-12 16:02:32 -0700 |
---|---|---|
committer | Eevee (Alex Munroe) <eevee.git@veekun.com> | 2014-07-12 16:02:32 -0700 |
commit | 4b1c1cfdb100455662a21f797a95c45b0a449552 (patch) | |
tree | 56e589ff05295e4452906e2084ceb3c01252ba5b | |
parent | 33dbb0ab5611bfc8f262ae9df91d59c58af638ea (diff) | |
download | pyscss-4b1c1cfdb100455662a21f797a95c45b0a449552.tar.gz |
Convert empty list rendering test to a regular test; trying to get rid of xfail.
-rw-r--r-- | scss/tests/files/xfail/empty-list-should-error.css | 0 | ||||
-rw-r--r-- | scss/tests/files/xfail/empty-list-should-error.scss | 5 | ||||
-rw-r--r-- | scss/tests/test_types.py | 8 |
3 files changed, 7 insertions, 6 deletions
diff --git a/scss/tests/files/xfail/empty-list-should-error.css b/scss/tests/files/xfail/empty-list-should-error.css deleted file mode 100644 index e69de29..0000000 --- a/scss/tests/files/xfail/empty-list-should-error.css +++ /dev/null diff --git a/scss/tests/files/xfail/empty-list-should-error.scss b/scss/tests/files/xfail/empty-list-should-error.scss deleted file mode 100644 index 4ef9932..0000000 --- a/scss/tests/files/xfail/empty-list-should-error.scss +++ /dev/null @@ -1,5 +0,0 @@ -$test: (); - -#{$test} { - color: red; -}
\ No newline at end of file diff --git a/scss/tests/test_types.py b/scss/tests/test_types.py index f22bd0b..94b29b2 100644 --- a/scss/tests/test_types.py +++ b/scss/tests/test_types.py @@ -3,7 +3,7 @@ from __future__ import absolute_import from __future__ import print_function from __future__ import unicode_literals -from scss.types import Color, Null, Number, String +from scss.types import Color, List, Null, Number, String import pytest @@ -149,4 +149,10 @@ def test_comparison_null(): null < null +def test_unrenderable(): + # Empty lists can't be rendered as CSS + with pytest.raises(ValueError): + List([]).render() + + # TODO write more! i'm lazy. |