Skip to content

Commit 896a8c7

Browse files
authored
Merge pull request #1800 from python-gitlab/jlvillal/dot_branch
chore: add test case to show branch name with period works
2 parents 1f95613 + ea97d7a commit 896a8c7

File tree

1 file changed

+17
-0
lines changed

1 file changed

+17
-0
lines changed

tests/functional/api/test_branches.py

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
"""
2+
GitLab API:
3+
https://docs.gitlab.com/ee/api/branches.html
4+
"""
5+
6+
7+
def test_branch_name_with_period(project):
8+
# Make sure we can create and get a branch name containing a period '.'
9+
branch_name = "my.branch.name"
10+
branch = project.branches.create({"branch": branch_name, "ref": "main"})
11+
assert branch.name == branch_name
12+
13+
# Ensure we can get the branch
14+
fetched_branch = project.branches.get(branch_name)
15+
assert branch.name == fetched_branch.name
16+
17+
branch.delete()

0 commit comments

Comments
 (0)
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