def set_repos(self, repos, bypass_check: bool = False): """ Setter of the repositories for the profile. :param repos: The new repositories which will be set. :param bypass_check: If repository checks should be checked or not. """ utils.set_repos(self, repos, bypass_check)
def test_set_repos(): # Arrange test_api = CobblerAPI() test_manager = CollectionManager(test_api) testprofile = Profile(test_manager) # Act # TODO: Test this also with the bypass check utils.set_repos(testprofile, "testrepo1 testrepo2", bypass_check=True) # Assert assert testprofile.repos == ["testrepo1", "testrepo2"]
def set_repos(self, repos, bypass_check=False): utils.set_repos(self, repos, bypass_check)