def test_pass_multiple_urls_params(self): from spacewalk.satellite_tools.reposync import RepoSync urls = ['http://some.url', 'http://some-other.url'] repo_sync = RepoSync(channel_label="channel-label", repo_type=RTYPE, url=urls) repo_sync.sync()
def test_pass_multiple_urls_params(self): from spacewalk.satellite_tools.reposync import RepoSync urls = ['http://some.url', 'http://some-other.url'] repo_sync = RepoSync( channel_label="channel-label", repo_type=RTYPE, url=urls ) repo_sync.sync()
def test_pass_multiple_urls_params(self): from spacewalk.satellite_tools.reposync import RepoSync urls = ['http://some.url', 'http://some-other.url'] repo_sync = RepoSync(channel_label="channel-label", repo_type=RTYPE, url=urls) repo_sync = _mock_sync(spacewalk.satellite_tools.reposync, repo_sync) CFG = Mock() CFG.MOUNT_POINT = '/tmp' CFG.PREPENDED_DIR = '' CFG.AUTO_GENERATE_BOOTSTRAP_REPO = 1 with patch("uyuni.common.context_managers.CFG", CFG): repo_sync.sync()