Skip to content

Commit 34c9682

Browse files
committed
test: assert on str instead of int as per gitlab spec
1 parent cbc3419 commit 34c9682

File tree

1 file changed

+10
-5
lines changed

1 file changed

+10
-5
lines changed

tests/functional/api/test_statistics.py

+10-5
Original file line numberDiff line numberDiff line change
@@ -14,12 +14,17 @@ def test_get_statistics(gl):
1414
}
1515
)
1616
gl.groups.create({"name": "gryffindor", "path": "gryffindor"})
17+
gl.groups.create({"name": "slytherin", "path": "slytherin"})
1718
gl.snippets.create(
18-
{"title": "uniquesnippet", "file_name": "snippet394.py", "content": "import gitlab"}
19+
{
20+
"title": "uniquesnippet",
21+
"file_name": "snippet394.py",
22+
"content": "import gitlab",
23+
}
1924
)
2025

2126
statistics = gl.statistics.get()
22-
assert statistics.snippets == 1
23-
assert statistics.users == 1
24-
assert statistics.groups == 1
25-
assert statistics.projects == 1
27+
assert statistics.snippets == "1"
28+
assert statistics.users == "1"
29+
assert statistics.groups == "2"
30+
assert statistics.projects == "1"

0 commit comments

Comments
 (0)