16 from random
import Random
23 def __init__(self, randomize_suites=True, randomize_tests=True, seed=None):
29 args = (seed,)
if seed
is not None else ()
40 suite.metadata[
'Randomized'] = self.
_get_message_get_message()
43 possibilities = {(
True,
True):
'Suites and tests',
44 (
True,
False):
'Suites',
45 (
False,
True):
'Tests'}
47 return '%s (seed %s)' % (possibilities[randomized], self.
seedseed)
Interface to ease traversing through a test suite structure.
def visit_keyword(self, kw)
Implements traversing through the keyword and its child keywords.
def __init__(self, randomize_suites=True, randomize_tests=True, seed=None)
def start_suite(self, suite)
Called when suite starts.
def visit_test(self, test)
Implements traversing through the test and its keywords.