summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNejc Habjan <hab.nejc@gmail.com>2021-12-11 15:36:32 +0100
committerNejc Habjan <hab.nejc@gmail.com>2021-12-11 15:36:32 +0100
commitf929d35278176c91a6fc1e1628acfc059be592f6 (patch)
treea07c2c74e21afd38b63c1654771ff2a4c34de3f1
parent039765b3e5c60cc8809ace9f5a7d819db3406428 (diff)
downloadgitlab-feat/topics.tar.gz
test(api): fix current user mail count in newer gitlabfeat/topics
-rw-r--r--tests/functional/api/test_current_user.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/functional/api/test_current_user.py b/tests/functional/api/test_current_user.py
index 5802457..c8fc639 100644
--- a/tests/functional/api/test_current_user.py
+++ b/tests/functional/api/test_current_user.py
@@ -1,10 +1,10 @@
def test_current_user_email(gl):
gl.auth()
mail = gl.user.emails.create({"email": "current@user.com"})
- assert len(gl.user.emails.list()) == 1
+ assert len(gl.user.emails.list()) == 2
mail.delete()
- assert len(gl.user.emails.list()) == 0
+ assert len(gl.user.emails.list()) == 1
def test_current_user_gpg_keys(gl, GPG_KEY):