示例#1
0
 def tearDown(self):
     """Run after tests."""
     unregister_lookup_handler("noop")
示例#2
0
 def tearDown(self) -> None:
     """Run after tests."""
     unregister_lookup_handler("noop")
     return super().tearDown()
示例#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