Skip to content

Ensure unittest example MyTestCase can be run #126864

Closed as not planned
Closed as not planned
@samimakinen-twoday

Description

@samimakinen-twoday

Documentation

https://docs.python.org/3/library/unittest.html#organizing-test-code

In the examples test functions create instance of Widget class but there is no import for the class.
It is impossible to write unit tests without knowing how to import the modules you are about to test, so it would be nice to see how it is actually done.

Metadata

Metadata

Assignees

No one assigned

    Labels

    docsDocumentation in the Doc dir

    Projects

    Status

    Done

    Status

    Todo

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions