コード例 #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
ファイル: test_task.py プロジェクト: g-k/scriptworker
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