pyirk.utils

Module Contents

Classes

GeneralHousekeeperMixin

Class to provide common functions for all our TestCase subclasses.

Functions

render_template

:param template: path to template file relative to TEMPLATE_DIR :param context: dict containing the data which should be inserted into the template

API

class pyirk.utils.GeneralHousekeeperMixin

Class to provide common functions for all our TestCase subclasses.

It is expected that this class is subclassed in the tests (with updated class variables)

UNLOAD_MODS

True

TEST_BASE_URI

‘irk:/local/unittest’

PRINT_TEST_METHODNAMES

True

setUp()
tearDown() None
unload_all_mods()
register_this_module()
print_methodnames()
had_error()
pyirk.utils.render_template(template: str, context: dict)

:param template: path to template file relative to TEMPLATE_DIR :param context: dict containing the data which should be inserted into the template