fix: align inspection report template
This commit is contained in:
1 parent
c6f742f15b
commit
0cb5889ce2
4 files changed
+12
-11
No files matched your search
+1
-1
@@ -40,7 +40,7 @@ class ApiTests(unittest.TestCase):
|
||||
"resources": [["вьюнок", -2], ["паук", 1]],
|
||||
}
|
||||
)
|
||||
self.assertIn("осмотрел(а) дупло 6 раз", response["message"])
|
||||
self.assertIn("осмотрел(-а) дупло 6 раз", response["message"])
|
||||
|
||||
def test_bulk_inspection_payload_explains_missing_fields(self):
|
||||
response = inspect_bulk_payload({"text": "/лу 15.08 11:00 11:20 | Белка [1] | Котёнок [2]"})
|
||||
|
||||
+4
-3
@@ -107,10 +107,11 @@ class ReportTests(unittest.TestCase):
|
||||
resources=(("вьюнок", -2), ("паук", 1)),
|
||||
)
|
||||
)
|
||||
self.assertIn("осмотрел(а) дупло 6 раз", text)
|
||||
self.assertIn("осмотрел(-а) дупло 6 раз", text)
|
||||
self.assertIn("#осмотр", text)
|
||||
self.assertIn("- 2 вьюнок", text)
|
||||
self.assertIn("+1 паук", text)
|
||||
self.assertIn("-2 вьюнок.", text)
|
||||
self.assertIn("+1 паук.", text)
|
||||
self.assertIn("Скриншот истории и рта.", text)
|
||||
|
||||
|
||||
if __name__ == "__main__":
|
||||
|
||||
Reference in new issue
Block a user