From ea97d7a68dd92c6f43dd1f307d63b304137315c4 Mon Sep 17 00:00:00 2001 From: "John L. Villalovos" Date: Mon, 3 Jan 2022 16:59:42 -0800 Subject: [PATCH] chore: add test case to show branch name with period works Add a test case to show that a branch name with a period can be fetched with a `get()` Closes: #1715 --- tests/functional/api/test_branches.py | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 tests/functional/api/test_branches.py diff --git a/tests/functional/api/test_branches.py b/tests/functional/api/test_branches.py new file mode 100644 index 000000000..0621705cf --- /dev/null +++ b/tests/functional/api/test_branches.py @@ -0,0 +1,17 @@ +""" +GitLab API: +https://docs.gitlab.com/ee/api/branches.html +""" + + +def test_branch_name_with_period(project): + # Make sure we can create and get a branch name containing a period '.' + branch_name = "my.branch.name" + branch = project.branches.create({"branch": branch_name, "ref": "main"}) + assert branch.name == branch_name + + # Ensure we can get the branch + fetched_branch = project.branches.get(branch_name) + assert branch.name == fetched_branch.name + + branch.delete() pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy