summaryrefslogtreecommitdiff
path: root/tools/python_test_v4.py
diff options
context:
space:
mode:
authorMax Wittig <max.wittig@siemens.com>2020-03-19 07:58:18 +0100
committerGitHub <noreply@github.com>2020-03-19 07:58:18 +0100
commit4ffaf1dc0365690df810c99573f5737f635240e0 (patch)
tree7664f26b9d8863650471cd7cfa4d0b0d15508f9b /tools/python_test_v4.py
parentad7e2bf7472668ffdcc85eec30db4139b92595a6 (diff)
parent9b16614ba6444b212b3021a741b9c184ac206af1 (diff)
downloadgitlab-4ffaf1dc0365690df810c99573f5737f635240e0.tar.gz
Merge pull request #1040 from nejch/test/project-export-import
test: update tests and params for project export/import
Diffstat (limited to 'tools/python_test_v4.py')
-rw-r--r--tools/python_test_v4.py6
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)