| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
1 parent 2f06999 commit 33a04e7
2 files changed
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -547,6 +547,8 @@ def run( | |||
| 547 | 547 | printer.display(data, verbose=True, obj=data) | |
| 548 | 548 | elif isinstance(data, list): | |
| 549 | 549 | printer.display_list(data, fields, verbose=verbose) | |
| 550 | + elif isinstance(data, gitlab.base.RESTObjectList): | ||
| 551 | + printer.display_list(list(data), fields, verbose=verbose) | ||
| 550 | 552 | elif isinstance(data, gitlab.base.RESTObject): | |
| 551 | 553 | printer.display(get_dict(data, fields), verbose=verbose, obj=data) | |
| 552 | 554 | elif isinstance(data, str): | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -49,6 +49,21 @@ def test_list_all_commits(gitlab_cli, project): | |||
| 49 | 49 | assert len(ret_all.stdout) > len(ret.stdout) | |
| 50 | 50 | ||
| 51 | 51 | ||
| 52 | + def test_list_merge_request_commits(gitlab_cli, merge_request, project): | ||
| 53 | + cmd = [ | ||
| 54 | + "project-merge-request", | ||
| 55 | + "commits", | ||
| 56 | + "--project-id", | ||
| 57 | + project.id, | ||
| 58 | + "--iid", | ||
| 59 | + merge_request.iid, | ||
| 60 | + ] | ||
| 61 | + | ||
| 62 | + ret = gitlab_cli(cmd) | ||
| 63 | + assert ret.success | ||
| 64 | + assert ret.stdout | ||
| 65 | + | ||
| 66 | + | ||
| 52 | 67 | def test_commit_merge_requests(gitlab_cli, project, merge_request, wait_for_sidekiq): | |
| 53 | 68 | """This tests the `project-commit merge-requests` command and also tests | |
| 54 | 69 | that we can print the result using the `json` formatter""" | |
| Back | FazBrowse Home | New Git URL |
0 commit comments