summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNejc Habjan <hab.nejc@gmail.com>2021-12-11 15:36:32 +0100
committerJohn Villalovos <john@sodarock.com>2021-12-11 10:25:08 -0800
commitaf33affa4888fa83c31557ae99d7bbd877e9a605 (patch)
treed07f2319ef51b9c45af8b66f71c5024ddbc9c8b4
parente3035a799a484f8d6c460f57e57d4b59217cd6de (diff)
downloadgitlab-af33affa4888fa83c31557ae99d7bbd877e9a605.tar.gz
test(api): fix current user mail count in newer gitlab
-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):