Is there a way to override the `EnvironmentName` u...
# development
f
Is there a way to override the
EnvironmentName
used by the rule graph in a test? I tried setting up the RuleRunner with:
Copy code
QueryRule(ProcessResult, [Process, EnvironmentName]),
            QueryRule(FallibleProcessResult, [Process, EnvironmentName]),
and then call
rule_runner.request(FallibleProcessResult, [process, env_name])
but I get this error:
Copy code
E       Exception: Values used as `Params` must have distinct types, but the following values had the same type (`EnvironmentName`):
E         EnvironmentName(val='__local_workspace__')
E         EnvironmentName(val=None)
I would have hoped the
EnvironmentName
from the
rule_runner.request
call would have overridden whatever was already generated within the rule graph.
c
f
I wasn't even aware of that parameter. Will try it!