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