Skip to content

Add interface override for testing #4

@SamuelYaron

Description

@SamuelYaron

One important requirement for this library is that the registry can be used in testing code to override interface implementations with test classes. Something like

def test_something():
    with my_registry.override("interface_name", TestInterfaceImplementation):
      do_something_using_interface_name()

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions