| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
1 parent 4bef473 commit 06266ea
4 files changed
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -16,7 +16,7 @@ def test_project_deploy_tokens(gl, project): | |||
| 16 | 16 | ||
| 17 | 17 | deploy_token = project.deploytokens.get(deploy_token.id) | |
| 18 | 18 | assert deploy_token.name == "foo" | |
| 19 | - assert deploy_token.expires_at == today + "T00:00:00.000Z" | ||
| 19 | + assert deploy_token.expires_at == f"{today}T00:00:00.000Z" | ||
| 20 | 20 | assert deploy_token.scopes == ["read_registry"] | |
| 21 | 21 | assert deploy_token.username == "bar" | |
| 22 | 22 | ||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -77,6 +77,9 @@ def test_list_merge_request_commits(gitlab_cli, merge_request, project): | |||
| 77 | 77 | ||
| 78 | 78 | ||
| 79 | 79 | def test_commit_merge_requests(gitlab_cli, project, merge_request): | |
| 80 | + """This tests the `project-commit merge-requests` command and also tests | ||
| 81 | + that we can print the result using the `json` formatter""" | ||
| 82 | + | ||
| 80 | 83 | # Pause to let GL catch up (happens on hosted too, sometimes takes a while for server to be ready to merge) | |
| 81 | 84 | time.sleep(30) | |
| 82 | 85 | ||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -2,7 +2,7 @@ | |||
| 2 | 2 | import os | |
| 3 | 3 | import time | |
| 4 | 4 | ||
| 5 | - branch = "branch-cli-v4" | ||
| 5 | + branch = "BRANCH-cli-v4" | ||
| 6 | 6 | ||
| 7 | 7 | ||
| 8 | 8 | def test_create_project(gitlab_cli): | |
@@ -243,6 +243,8 @@ def test_accept_request_merge(gitlab_cli, project): | |||
| 243 | 243 | # Pause to let GL catch up (happens on hosted too, sometimes takes a while for server to be ready to merge) | |
| 244 | 244 | time.sleep(30) | |
| 245 | 245 | ||
| 246 | + mr = project.mergerequests.get(mr.iid) | ||
| 247 | + | ||
| 246 | 248 | if mr.detailed_merge_status == "not_approved": | |
| 247 | 249 | approve_cmd = [ | |
| 248 | 250 | "project-merge-request", | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -389,9 +389,6 @@ def _make_merge_request(*, source_branch: str, create_pipeline: bool = False): | |||
| 389 | 389 | } | |
| 390 | 390 | ) | |
| 391 | 391 | ||
| 392 | - # Helps with Debugging why MRs fail to merge resulting in 405 from downstream tests | ||
| 393 | - project.approvalrules.list() | ||
| 394 | - | ||
| 395 | 392 | if create_pipeline: | |
| 396 | 393 | project.files.create( | |
| 397 | 394 | { | |
| Back | FazBrowse Home | New Git URL |
0 commit comments