build_manifest.py: add a failure test case for branches

This commit is contained in:
Jordan Petridis 2018-10-24 17:54:34 +03:00
parent ea5459e127
commit 17195ea3aa
No known key found for this signature in database
GPG key ID: 902CC06D159744F5

View file

@ -75,6 +75,9 @@ def test_get_project_branch():
assert fourteen is not None
assert fourteen['name'] == '1.14'
failure = get_project_branch(id, 'why-would-anyone-chose-this-branch-name')
assert failure is None
# Documentation: https://docs.gitlab.com/ce/api/projects.html#list-user-projects
def search_user_namespace(user: str, project: str) -> Dict[str, str]: