While unit testing hooks, I can't seem to interact...
# ask-community
a
While unit testing hooks, I can't seem to interact with any op configs as I get the following error
Copy code
E       dagster._core.errors.DagsterInvalidPropertyError: The solid_config property is not set when a `HookContext` is constructed from `build_hook_context`.

venv/lib/python3.10/site-packages/dagster/_core/execution/context/hook.py:379: DagsterInvalidPropertyError
which stems from the fact that my hook looks something like
Copy code
@failure_hook
def mv_outgoing_hook(context: HookContext):
    key = context.op_config["filename"]
y
mind sharing your test code?