Skip to content
This repository was archived by the owner on Apr 1, 2022. It is now read-only.

Make the bot flow testable using unit tests #95

@elinguiuriel

Description

@elinguiuriel

Describe the bug

There is no way to test the bot flow because the object messenger is passed as an argument in

def send_start_messages(messenger):
    ....

def process_message(messenger, message):
    ....

def process_postback(messenger, payload):
    ...

These functions should always return a list containing the sequence of requests and actions to perform. We will be able to test the validity of the list in unit test.

Metadata

Metadata

Labels

bugSomething isn't workingenhancementNew feature or request

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions