fix(api): validate nested report fields
This commit is contained in:
1 parent
92171731ae
commit
0aec421ad2
6 files changed
+48
-6
No files matched your search
@@ -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(
|
||||
|
||||
Reference in new issue
Block a user