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
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
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