diff options
author | Nejc Habjan <nejc.habjan@siemens.com> | 2020-03-18 19:25:34 -0400 |
---|---|---|
committer | Nejc Habjan <nejc.habjan@siemens.com> | 2020-03-18 20:00:27 -0400 |
commit | 9b16614ba6444b212b3021a741b9c184ac206af1 (patch) | |
tree | 7664f26b9d8863650471cd7cfa4d0b0d15508f9b /tools/python_test_v4.py | |
parent | 0bff71353937a451b1092469330034062d24ff71 (diff) | |
download | gitlab-9b16614ba6444b212b3021a741b9c184ac206af1.tar.gz |
fix: add missing import_project param
Diffstat (limited to 'tools/python_test_v4.py')
-rw-r--r-- | tools/python_test_v4.py | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/tools/python_test_v4.py b/tools/python_test_v4.py index 90aa7f1..fad8c69 100644 --- a/tools/python_test_v4.py +++ b/tools/python_test_v4.py @@ -962,9 +962,13 @@ with open("/tmp/gitlab-export.tgz", "wb") as f: ex.download(streamed=True, action=f.write) output = gl.projects.import_project( - open("/tmp/gitlab-export.tgz", "rb"), "imported_project" + open("/tmp/gitlab-export.tgz", "rb"), "imported_project", name="Imported Project" ) project_import = gl.projects.get(output["id"], lazy=True).imports.get() + +assert project_import.path == "imported_project" +assert project_import.name == "Imported Project" + count = 0 while project_import.import_status != "finished": time.sleep(1) |