FazBrowse GitHub Viewer
|
Trending
|
URL:
|
Home
Tools:
[Download Repo ZIP]
[View Raw Code]
[Original HTTPS Page]
python-gitlab/tests/functional/api/test_branches.py at main · python-gitlab/python-gitlab · GitHub
python-gitlab
python-gitlab
Repository navigation
Code
Issues
16
(16)
Pull requests
15
(15)
Discussions
Actions
Projects
Security and quality
Insights
Expand file tree
Breadcrumbs
python-gitlab
/
tests
/
functional
/
api
/
test_branches.py
Copy path
More file actions
More file actions
Latest commit
History
History
History
17 lines (13 loc) · 494 Bytes
Breadcrumbs
python-gitlab
/
tests
/
functional
/
api
/
test_branches.py
Copy path
File metadata and controls
17 lines (13 loc) · 494 Bytes
Raw
Copy raw file
Download raw file
Open symbols panel
Edit and raw actions
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
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
()
Back
|
FazBrowse Home
|
New Git URL