feat(vk): relax explicit coaching schedule format
This commit is contained in:
1 parent
cf99a8da35
commit
2a21723237
3 files changed
+11
-1
No files matched your search
@@ -286,6 +286,10 @@ class VkConversationTests(unittest.TestCase):
|
||||
self.assertEqual(parsed["inspections"], 6)
|
||||
self.assertEqual(parsed["resources"], [["паутина", 2]])
|
||||
|
||||
def test_explicit_coaching_command_accepts_a_time_range_and_written_date(self):
|
||||
parsed = parse_text_command("/лу 24 августа 21:00–22:00 | Белка [1] | Ученик [2] | сам")
|
||||
self.assertEqual((parsed["date"], parsed["start"], parsed["end"]), ("24.08", "21:00", "22:00"))
|
||||
|
||||
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 паук"
|
||||
|
||||
Reference in new issue
Block a user