Exemple #1
0
 def assert_requirements(self, expected_req_strs, addr):
     reqs = self.request_single_product(
         ExportedTargetRequirements,
         Params(DependencyOwner(ExportedTarget(self.tgt(addr))),
                create_options_bootstrapper()),
     )
     assert sorted(expected_req_strs) == list(reqs)
Exemple #2
0
 def assert_owned(self, owned: Iterable[str], exported: str):
     assert sorted(owned) == sorted(
         od.target.address.reference()
         for od in self.request_single_product(
             OwnedDependencies, Params(DependencyOwner(ExportedTarget(self.tgt(exported))))
         )
     )
Exemple #3
0
 def assert_owned(self, owned: Iterable[str], exported: str):
     assert sorted(owned) == sorted(
         od.target.address.spec for od in self.request_single_product(
             OwnedDependencies,
             Params(
                 DependencyOwner(ExportedTarget(self.tgt(exported))),
                 create_options_bootstrapper(),
             ),
         ))
Exemple #4
0
 def assert_requirements(self, expected_req_strs, addr):
     reqs = self.request_single_product(
         ExportedTargetRequirements,
         Params(DependencyOwner(ExportedTarget(self.tgt(addr)))))
     assert sorted(expected_req_strs) == sorted(reqs.requirement_strs)