Skip to content

Improve widgets testsΒ #118

@stsewd

Description

@stsewd

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions