summaryrefslogtreecommitdiff
path: root/tools/python_test_v4.py
diff options
context:
space:
mode:
authorGauvain Pocentek <gauvain@pocentek.net>2019-05-01 07:45:19 +0200
committerGauvain Pocentek <gauvain@pocentek.net>2019-06-10 15:05:46 +0200
commit76b6e1fc0f42ad00f21d284b4ca2c45d6020fd19 (patch)
tree08a3cab6460bcb26eb6bde7122b004a7a16ee59e /tools/python_test_v4.py
parente45a6e2618db30834f732c5a7bc9f1c038c45c31 (diff)
downloadgitlab-fix/744/delete_artifacts.tar.gz
feat: implement artifacts deletionfix/744/delete_artifacts
Closes #744
Diffstat (limited to 'tools/python_test_v4.py')
-rw-r--r--tools/python_test_v4.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/tools/python_test_v4.py b/tools/python_test_v4.py
index b8dae28..07f3589 100644
--- a/tools/python_test_v4.py
+++ b/tools/python_test_v4.py
@@ -421,8 +421,9 @@ assert "@@" in admin_project.commits.list()[0].diff()[0]["diff"]
# commit status
commit = admin_project.commits.list()[0]
+size = len(commit.statuses.list())
status = commit.statuses.create({"state": "success", "sha": commit.id})
-assert len(commit.statuses.list()) == 1
+assert len(commit.statuses.list()) == size + 1
assert commit.refs()
assert commit.merge_requests() is not None