feat(vk): accept flexible inspection command order

This commit is contained in:
nyan404 committed 2026-08-25 04:13:24 +03:00
1 parent af5c047e27
commit cf99a8da35
3 files changed
+14 -2

No files matched your search

+6
View File
@@ -280,6 +280,12 @@ class VkConversationTests(unittest.TestCase):
self.assertEqual(inspected["fields"]["character_id"], 1617140)
self.assertIn("имени", " ".join(inspected["questions"]).lower())
def test_explicit_inspection_command_accepts_count_before_place(self):
parsed = parse_text_command("/осмотр 6 расщелина Серолап [1617140] | паутина=2")
self.assertEqual(parsed["place"], "расщелина")
self.assertEqual(parsed["inspections"], 6)
self.assertEqual(parsed["resources"], [["паутина", 2]])
def test_natural_inspection_does_not_confuse_date_or_id_with_count(self):
inspected = inspect_bulk_text(
"24.08 осмотр расщелина: 6 раз; персонаж Серолап id 1 617 140; +2 паутина, +1 паук"