summaryrefslogtreecommitdiff
path: root/tests/__init__.py
diff options
context:
space:
mode:
authorpommicket <pommicket@gmail.com>2025-09-23 11:11:36 -0400
committerpommicket <pommicket@gmail.com>2025-09-23 11:11:36 -0400
commit216909c9e45316d7714d12296a83dbcb1589756c (patch)
tree8b74c4506ae637ce003b3337b57e096e8311b1d7 /tests/__init__.py
parent7afac3b1f9fb29bb6e68f5ebe8782488b6be4d98 (diff)
Error tests, fix duplicate keys not being detected
Diffstat (limited to 'tests/__init__.py')
-rw-r--r--tests/__init__.py10
1 files changed, 9 insertions, 1 deletions
diff --git a/tests/__init__.py b/tests/__init__.py
index e9737ec..aed3dc6 100644
--- a/tests/__init__.py
+++ b/tests/__init__.py
@@ -1,6 +1,6 @@
import unittest
import os
-from tests import parsing
+from tests import parsing, errors
class TestParsing(unittest.TestCase):
def test_all(self) -> None:
@@ -10,6 +10,14 @@ class TestParsing(unittest.TestCase):
with self.subTest(file):
parsing.test_path(self, f'{test_dir}/{file}')
+class TestErrors(unittest.TestCase):
+ def test_all(self) -> None:
+ test_dir = '../tests/errors'
+ for file in os.listdir(test_dir):
+ if not file.endswith('.pom'): continue
+ with self.subTest(file):
+ errors.test_path(self, f'{test_dir}/{file}')
+
if __name__ == '__main__':
unittest.main()