webdriver_test_tools.config.test module

class webdriver_test_tools.config.test.TestSuiteConfig[source]

Bases: object

Configurations for test suite

RUNNER_CLASS

alias of colour_runner.runner.ColourTextTestRunner

RUNNER_KWARGS = {}

Dictionary mapping parameter names to desired values used to initialize the TestRunner configured in RUNNER_CLASS

DEFAULT_VERBOSITY = 2

Value used if the verbosity parameter is unspecified when calling get_runner().

Note

  • Conflict may occur if 'verbosity' is set in RUNNER_KWARGS. Be sure to use DEFAULT_VERBOSITY instead for setting this value.

  • get_runner() assumes the RUNNER_CLASS constructor takes a verbosity parameter in its constructor. If using a custom test runner class that doesn’t support this, you should override the get_runner() method in your project’s TestSuiteConfig class.

classmethod get_runner(verbosity=None)[source]

Returns RUNNER_CLASS object using RUNNER_KWARGS to initialize

Parameters

verbosity – (Optional) value to use for the verbosity parameter when initializing the test runner. Uses DEFAULT_VERBOSITY if unspecified.

Returns

The initialized TestRunner object