diff options
author | Anthon van der Neut <anthon@mnt.org> | 2018-08-23 01:33:56 +0200 |
---|---|---|
committer | Anthon van der Neut <anthon@mnt.org> | 2018-08-23 01:33:56 +0200 |
commit | 9673bc2b6008461b3e5bcb21cad925730e92baab (patch) | |
tree | ae1e0474044227d9ee7b2ba04b15ea0816d44a88 | |
parent | 6a331a136c4cc5948181a2493bdbddfd2de427d3 (diff) | |
download | ruamel.yaml-9673bc2b6008461b3e5bcb21cad925730e92baab.tar.gz |
change tests for folded scalars to fail, re #158
-rw-r--r-- | _test/test_string.py | 20 |
1 files changed, 19 insertions, 1 deletions
diff --git a/_test/test_string.py b/_test/test_string.py index 47970cf..a12bdd6 100644 --- a/_test/test_string.py +++ b/_test/test_string.py @@ -86,7 +86,7 @@ class TestPreservedScalarString: """ round_trip(inp, intermediate=dict(a='ghi\njkl\n\n')) - def test_fold_string(self): + def Xtest_fold_string(self): with pytest.raises(AssertionError) as excinfo: # NOQA inp = """ a: > @@ -96,6 +96,15 @@ class TestPreservedScalarString: """ round_trip(inp, intermediate=dict(a='abc def\n')) + def test_fold_string(self): + inp = """ + a: > + abc + def + + """ + round_trip(inp) + def test_fold_string_strip(self): with pytest.raises(AssertionError) as excinfo: # NOQA inp = """ @@ -106,6 +115,15 @@ class TestPreservedScalarString: """ round_trip(inp, intermediate=dict(a='abc def')) + def test_fold_string_strip(self): + inp = """ + a: >- + abc + def + + """ + round_trip(inp) + def test_fold_string_keep(self): with pytest.raises(AssertionError) as excinfo: # NOQA inp = """ |