def repos(self, repos: list): """ Setter of the repositories for the profile. :param repos: The new repositories which will be set. """ self._repos = validate.validate_repos(repos, self.api, bypass_check=False)
def test_set_repos(): # Arrange test_api = CobblerAPI() # Act # TODO: Test this also with the bypass check result = validate.validate_repos("testrepo1 testrepo2", test_api, bypass_check=True) # Assert assert result == ["testrepo1", "testrepo2"]