feat(applications): add keyboard flow and export outbox
This commit is contained in:
1 parent
cfeee5a814
commit
27bcc291db
11 files changed
+255
-10
No files matched your search
@@ -53,6 +53,8 @@ class VkBotTests(unittest.TestCase):
|
||||
def test_button_payload_maps_to_command(self):
|
||||
self.assertEqual(BelkiBot._button_text({"payload": "menu:lu"}), "/лу")
|
||||
self.assertEqual(BelkiBot._button_text({"payload": '{"command":"confirm:yes"}'}), "да")
|
||||
self.assertEqual(BelkiBot._button_text({"payload": '{"command":"application:flying"}'}), "/летяга")
|
||||
self.assertEqual(BelkiBot._button_text({"payload": '{"command":"application:practice-no"}'}), "нет")
|
||||
|
||||
def test_keyboard_button_payloads_are_valid_json(self):
|
||||
keyboard = BelkiDialog().keyboard_for(503)
|
||||
|
||||
Reference in new issue
Block a user