Ejemplo n.º 1
0
 def tearDown(self):
     """Run after tests."""
     unregister_lookup_handler("noop")
Ejemplo n.º 2
0
 def tearDown(self) -> None:
     """Run after tests."""
     unregister_lookup_handler("noop")
     return super().tearDown()
Ejemplo n.º 3
0
def test_unregister_lookup_handler(mocker: MockerFixture) -> None:
    """Test unregister_lookup_handler."""
    mocker.patch.dict(CFNGIN_LOOKUP_HANDLERS, {"test": "something"})
    assert "test" in CFNGIN_LOOKUP_HANDLERS
    unregister_lookup_handler("test")
    assert "test" not in CFNGIN_LOOKUP_HANDLERS