def METHOD_NAME(rule_runner: RuleRunner) -> None:
    rule_runner.write_files(
        {
            "src/foo/BUILD": """helm_chart()""",
            "src/foo/Chart.yaml": dedent(
                """\
                apiVersion: v2
                name: foo
                version: 0.1.0
                dependencies:
                - name: bar
                """
            ),
        }
    )
    tgt = rule_runner.get_target(Address("src/foo", target_name="foo"))
    with pytest.raises(
        ExecutionError, match="Can not find any declared artifact for dependency 'bar'"
    ):
        rule_runner.request(
            InferredDependencies,
            [InferHelmChartDependenciesRequest(HelmChartDependenciesInferenceFieldSet.create(tgt))],
        )