Skip to content

Commit 84969ff

Browse files
committed
test: fix stats functional test adjustment
1 parent f04510c commit 84969ff

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

tests/functional/api/test_statistics.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@
22
GitLab API: https://docs.gitlab.com/ee/api/statistics.html
33
"""
44

5-
from itertools import count
65
from tests.functional.conftest import reset_gitlab
76

87

@@ -32,6 +31,6 @@ def test_get_statistics(gl):
3231

3332
statistics = gl.statistics.get()
3433
assert statistics.snippets == "1"
35-
assert statistics.users == str(1 + count(gl.users.list(search="ghost")))
34+
assert statistics.users == str(1 + len(gl.users.list(search="ghost")))
3635
assert statistics.groups == "2"
3736
assert statistics.projects == "1"

0 commit comments

Comments
 (0)