aboutsummaryrefslogtreecommitdiffstats
path: root/test/test_reader.py
diff options
context:
space:
mode:
Diffstat (limited to 'test/test_reader.py')
-rw-r--r--test/test_reader.py12
1 files changed, 11 insertions, 1 deletions
diff --git a/test/test_reader.py b/test/test_reader.py
index 79756c9..8c681c8 100644
--- a/test/test_reader.py
+++ b/test/test_reader.py
@@ -1,5 +1,8 @@
# -*- coding: utf-8 -*-
import yaml
+import yamlish
+import test
+import unittest
test_data_list = [
{
@@ -39,7 +42,7 @@ test_data_list = [
},
{
"name": 'Mixed array',
- "in": [ '---', '- 1', "- 'two'", r'- "three\n"', '...', ],
+ "in": [ '---', '- 1', "- 'two'", '- "three\n"', '...', ],
"out": [ 1, 'two', "three\n" ],
},
{
@@ -359,3 +362,10 @@ test_data_list = [
},
},
]
+
+class TestReader(unittest.TestCase): # IGNORE:C0111
+ pass
+
+if __name__ == "__main__":
+ test.generate_testsuite(test_data_list, TestReader, yamlish.load)
+ unittest.main()