runway.tests.registry module

Register test handlers.

runway.tests.registry.register_test_handler(test_type, handler_or_path)[source]

Register a test handler.

Parameters
  • test_type (str) – Name to register the handler under.

  • handler_or_path (OneOf[func, str]) – Function or a path to a handler.

runway.tests.registry.unregister_test_handler(test_type)[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

test_type (str) – Name of the lookup type to unregister.