fix(api): validate nested report fields

This commit is contained in:
nyan404 committed 2026-08-25 04:06:25 +03:00
1 parent 92171731ae
commit 0aec421ad2
6 files changed
+48 -6

No files matched your search

+2
View File
@@ -248,6 +248,8 @@ class ReportTests(unittest.TestCase):
def test_inspection_rejects_negative_resources(self):
with self.assertRaises(ValueError):
InspectionReport("Белка", 1, "дупло", 1, (("вьюнок", -1),))
with self.assertRaises(ValueError):
InspectionReport("Белка", 1, "дупло", 1, (("вьюнок", True),))
def test_inspection_resource_aliases_and_typos(self):
report = InspectionReport(