Previous topic

CData

Next topic

Counts

This Page

Context

Module: context

Author: arjs.net

License: http://opensource.org/licenses/mit-license.html; year=2013,2014; copyright holders=arjs.net

Module for the test context

class context.Context(stats)

Context: Holds the context information for the tests

__init__(stats)
Parameters:stats (Counts) – Counts object
Return type:Context
appendenvironment(key, value, env='')
Parameters:
  • key (str) – key to use
  • value (object) – Value to set
  • env (object) – Environment key
Return type:

None

Appends an environment

appendundefined(key, value)
Parameters:
  • key (str) –
  • value (object) –
Returns:

Return type:

None

Append an undefined step to a list

appendunknown(key, value)
Parameters:
  • key (str) –
  • value (object) –
Returns:

Return type:

None

Append an undefined images to a list

getenvironmentvalue(key, env='')
Parameters:
  • key (str) – Key to use
  • env (object) – Environment to return
Returns:

Return type:

object

Returns the environment values

listundefined()
Return type:None

Outputs the list of undefined steps

listunknown()
Return type:None

Outputs the list of undefined images