From 17195ea3aa0f11ac031e53c9d0c1a051e57341ac Mon Sep 17 00:00:00 2001 From: Jordan Petridis Date: Wed, 24 Oct 2018 17:54:34 +0300 Subject: [PATCH] build_manifest.py: add a failure test case for branches --- gitlab/build_manifest.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/gitlab/build_manifest.py b/gitlab/build_manifest.py index f98c946ed8..2e366c35d9 100755 --- a/gitlab/build_manifest.py +++ b/gitlab/build_manifest.py @@ -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]: