summaryrefslogtreecommitdiff
path: root/tests/errors.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/errors.py
parent7afac3b1f9fb29bb6e68f5ebe8782488b6be4d98 (diff)
Error tests, fix duplicate keys not being detected
Diffstat (limited to 'tests/errors.py')
-rw-r--r--tests/errors.py9
1 files changed, 9 insertions, 0 deletions
diff --git a/tests/errors.py b/tests/errors.py
new file mode 100644
index 0000000..841c30e
--- /dev/null
+++ b/tests/errors.py
@@ -0,0 +1,9 @@
+import pom_parser
+import unittest
+
+def test_path(tester: unittest.TestCase, path: str) -> None:
+ try:
+ pom_parser.load_path(path)
+ tester.fail(f'Parsing configuration {path} should have failed.')
+ except pom_parser.Error:
+ pass