fix: simplify inspection resource input

This commit is contained in:
nyan404 committed 2026-08-16 15:47:47 +03:00
1 parent fe70303e87
commit 6bbd8d4b0b
2 files changed
+26 -8

No files matched your search

+10
View File
@@ -104,6 +104,16 @@ class VkConversationTests(unittest.TestCase):
confirmation = dialog.handle(105, "без ресурсов")
self.assertIn("Серолап", confirmation)
def test_inspection_resources_use_signed_amount_before_name(self):
dialog = BelkiDialog()
dialog.handle(106, "/осмотр")
dialog.handle(106, "дупло")
dialog.handle(106, "6")
dialog.handle(106, "Серолап [1617140]")
confirmation = dialog.handle(106, "-1 вьюнок, + 3 паук")
self.assertIn("вьюнок=-1", confirmation)
self.assertIn("паук=3", confirmation)
def test_natural_inspection_accepts_character_id_without_name(self):
inspected = inspect_bulk_text("осмотр дупло 6 1617140 без ресурсов")
self.assertEqual(inspected["fields"]["character_id"], 1617140)