)
def test_coordinator_single_non_test_target(self) -> None:
bfaddr = BuildFileAddress(target_name="bin", rel_path="some/dir")
// Note that this is not the same error message the end user will see, as we"re resolving
// union Get requests in run_rule, not the real engine. But this test still asserts that
// we error when we expect to error.
with self.assertRaisesRegex(AssertionError, r"Rule requested: .* which cannot be satisfied."):
self.run_coordinator_of_tests(
address=bfaddr,
addr_to_origin={bfaddr.to_address(): SingleAddress(directory="some/dir", name="bin")},
test_target_type=False,
)
After Change
)
def test_coordinator_single_non_test_target(self) -> None:
addr = Address.parse("some/dir:bin")
// Note that this is not the same error message the end user will see, as we"re resolving
// union Get requests in run_rule, not the real engine. But this test still asserts that
// we error when we expect to error.
with self.assertRaisesRegex(AssertionError, r"Rule requested: .* which cannot be satisfied."):