adding yaml output

This commit is contained in:
evilchili
2022-08-06 13:32:34 -07:00
parent 06791a0758
commit 25de2c8c3c
2 changed files with 18 additions and 0 deletions
+5
View File
@@ -122,3 +122,8 @@ def test_no_descriptions():
t = tables.RollTable([fixture_no_descriptions], die=1)
assert 'd1' in str(t)
assert 'option 1' in str(t)
def test_yaml():
t = tables.RollTable([fixture_metadata + fixture_source])
print(t.as_yaml)