Skip to content

How do you test the interactive elements? #27

Description

@matt-dray

frame_pixels() executes readline(), which requires user input to continue. In a non-interactive environment, e.g. a test, I think the response is encoded as "" . The two responses possible in frame_pixels are yes and no, however, so how can I test for these responses?

click_pixels() uses locator(); how does this behave in a non-interactive test? The output from the function is a plot, so that could be tested against, at least. It would have to be a blank plot, since no user-clicks will be registered in the non-interactive environment.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    testTesting the functions

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions