We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent cbc3419 commit 34c9682Copy full SHA for 34c9682
tests/functional/api/test_statistics.py
@@ -14,12 +14,17 @@ def test_get_statistics(gl):
14
}
15
)
16
gl.groups.create({"name": "gryffindor", "path": "gryffindor"})
17
+ gl.groups.create({"name": "slytherin", "path": "slytherin"})
18
gl.snippets.create(
- {"title": "uniquesnippet", "file_name": "snippet394.py", "content": "import gitlab"}
19
+ {
20
+ "title": "uniquesnippet",
21
+ "file_name": "snippet394.py",
22
+ "content": "import gitlab",
23
+ }
24
25
26
statistics = gl.statistics.get()
- assert statistics.snippets == 1
- assert statistics.users == 1
- assert statistics.groups == 1
- 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