def _requirements(self): """Requirements for installing packages and groups. :return: a list of requirements """ return collect_remote_requirements() \ + collect_language_requirements(self._dnf_manager) \ + collect_platform_requirements(self._dnf_manager) \ + collect_driver_disk_requirements()
def collect_remote_requirements_test(self, proxy_getter): """Test the function collect_remote_requirements.""" r1 = self._create_requirement("a", "Required by A.") r2 = self._create_requirement("b", "Required by B.") r3 = self._create_requirement("c", "Required by C.") boss = BOSS.get_proxy() boss.CollectRequirements.return_value = \ Requirement.to_structure_list([r1, r2, r3]) requirements = collect_remote_requirements() self._compare_requirements(requirements, [r1, r2, r3])