pythonecuador/lira

Improve widgets tests

Opened this issue · 0 comments

In some places where we need to pass a callback

button = Button("Exit", handler=lambda: print("Hi"))

ListElement("One", on_select=lambda: print("Select")),
ListElement("Two"),
ListElement("Three", on_focus=lambda: print("Focus")),

We should actually pass a mock and assert that the mock has been called when expected.