Skip to content

Commit b437b70

Browse files
committed
test: account for root user
1 parent 84969ff commit b437b70

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

tests/functional/api/test_statistics.py

+3-1
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,8 @@ def test_get_statistics(gl):
3131

3232
statistics = gl.statistics.get()
3333
assert statistics.snippets == "1"
34-
assert statistics.users == str(1 + len(gl.users.list(search="ghost")))
34+
assert statistics.users == str(
35+
1 + len(gl.users.list(search="ghost")) + 1
36+
) # created users + leftover ghost user + root user
3537
assert statistics.groups == "2"
3638
assert statistics.projects == "1"

0 commit comments

Comments
 (0)