ExtensionsΒΆ

Extensions is tools for test development. You can to require it.

import seismograph


suite = seismograph.Suite(__name__, require=['selenium', 'mocker'])


selenium = suite.ext('selenium')
mock_server = suite.ext('mocker')

or for case only

@suite.register(require=['selenium', 'mock_server'])
def function_test(case):
    selenium = case.ext('selenium')
    mock_server = case.ext('mock_server')
    # do something

Extensions is allow from program instance.

program = seismograph.Program()
selenium = program.ext('selenium')
mock_server = program.ext('mock_server')