runway.tests.registry module

Register test handlers.

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

Register a test handler.

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

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


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.


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