on_viceroy

Functionin viceroyfastly-compute 0.1.3View source
on_viceroy(method) -> classmethod

Decorator for making a method run on the testrunner's Viceroy server

Decorate a method with this, and it will automagically run under Viceroy when called. The method must be in a subclass of AutoViceroyTestBase.

  • Return values and raised exceptions must be pickleable.
  • If the decorated method is not already a class method, we make it one, in service to conciseness.

Parameters

method: Any

Returns

classmethod