Testing module reference

class micro.common.testing.ServiceTestCase(methodName='runTest')[source]

The base test class which is capable of running API (see run_api())

run_api(*args, **kwargs)[source]

Reload the service module before running it. This is important to not to share microservice application state between test cases.

Parameters:
  • args – The arguments to pass to your API initializer
  • kwargs – The keyworded arguments to pass to your API initializer