BaseWidgetTestCase

Inheritance diagram of BaseWidgetTestCase

class BaseWidgetTestCase[source]

Bases: object

A base class for tests that need a widget instance

To use it, simply inherit from BaseWidgetTestCase and unittest.TestCase and provide the following class members:

  • _klass (typeobject) the widget class to test (mandatory)

  • initargs (list) a list of arguments for the klass init method

    (default=[])

  • initkwargs (dict) a dict of keyword arguments for the klass init method

    (default={})

initargs = []
initkwargs = {}
setUp()[source]

Preconditions:

  • A TaurusApplication must be initialized.
  • The widget must be instantiated