def METHOD_NAME() -> None:
    @get("/{my_key:str}", dependencies={"my_key": Provide(my_dependency)})
    def handler(my_key: str) -> None:
        pass
    with pytest.raises(ImproperlyConfiguredException):
        Litestar([handler])