| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
| Original file line number | Diff line number | Diff 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() | ||
| Back | FazBrowse Home | New Git URL |
0 commit comments