예제 #1
0
    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)
예제 #2
0
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"]
예제 #3
0
 def set_repos(self, repos, bypass_check=False):
     utils.set_repos(self, repos, bypass_check)
예제 #4
0
 def set_repos(self, repos, bypass_check=False):
     utils.set_repos(self, repos, bypass_check)