runway.lookups.registry module

Register test handlers.

runway.lookups.registry.register_lookup_handler(lookup_type: str, handler_or_path: Union[str, Type[runway.lookups.handlers.base.LookupHandler]]) None[source]

Register a lookup handler.

Parameters
  • lookup_type – Name to register the handler under

  • handler_or_path – a function or a path to a handler

runway.lookups.registry.unregister_lookup_handler(lookup_type: str) None[source]

Unregister the specified test type.

This is useful when testing various lookup types if you want to unregister the lookup type after the test runs.

Parameters

lookup_type – Name of the lookup type to unregister