コード例 #1
0
ファイル: run_setup_py_test.py プロジェクト: Spacerat/pants
 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)
コード例 #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))))
         )
     )
コード例 #3
0
ファイル: run_setup_py_test.py プロジェクト: Spacerat/pants
 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(),
             ),
         ))
コード例 #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)