示例#1
0
def test_get_repo(repo):
    task = {"payload": {"env": {}}}
    if repo:
        task["payload"]["env"]["GECKO_HEAD_REPOSITORY"] = repo
        assert swtask.get_repo(task, "GECKO") == "https://hg.mozilla.org/mozilla-central"
    else:
        assert swtask.get_repo(task, "GECKO") is None
示例#2
0
def test_get_repo(repo):
    task = {'payload': {'env': {}}}
    if repo:
        task['payload']['env']['GECKO_HEAD_REPOSITORY'] = repo
        assert swtask.get_repo(
            task, 'GECKO') == 'https://hg.mozilla.org/mozilla-central'
    else:
        assert swtask.get_repo(task, 'GECKO') is None
示例#3
0
def test_get_repo(repo):
    task = {
        'payload': {'env': {}}
    }
    if repo:
        task['payload']['env']['GECKO_HEAD_REPOSITORY'] = repo
        assert swtask.get_repo(task, 'GECKO') == 'https://hg.mozilla.org/mozilla-central'
    else:
        assert swtask.get_repo(task, 'GECKO') is None