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 inRUNNER_CLASS
-
DEFAULT_VERBOSITY
= 2¶ Value used if the
verbosity
parameter is unspecified when callingget_runner()
.Note
Conflict may occur if
'verbosity'
is set inRUNNER_KWARGS
. Be sure to useDEFAULT_VERBOSITY
instead for setting this value.get_runner()
assumes theRUNNER_CLASS
constructor takes averbosity
parameter in its constructor. If using a custom test runner class that doesn’t support this, you should override theget_runner()
method in your project’sTestSuiteConfig
class.
-
classmethod
get_runner
(verbosity=None)[source]¶ Returns
RUNNER_CLASS
object usingRUNNER_KWARGS
to initialize- Parameters
verbosity – (Optional) value to use for the
verbosity
parameter when initializing the test runner. UsesDEFAULT_VERBOSITY
if unspecified.- Returns
The initialized
TestRunner
object
-