File tree Expand file tree Collapse file tree 1 file changed +4
-25
lines changed
Expand file tree Collapse file tree 1 file changed +4
-25
lines changed Original file line number Diff line number Diff line change 77
88def test_get_statistics (gl ):
99
10- # delete resources created from other functional tests to reset application statistics
11- reset_gitlab (gl )
12-
13- gl .users .create (
14- {
15- "email" : "veryuniqueemail@test.com" ,
16- "username" : "plsdontclash" ,
17- "name" : "uniqueuser" ,
18- "password" : "hopefullythisdoesnthavetobeunique" ,
19- }
20- )
21- gl .groups .create ({"name" : "gryffindor" , "path" : "gryffindor" })
22- gl .groups .create ({"name" : "slytherin" , "path" : "slytherin" })
23- gl .snippets .create (
24- {
25- "title" : "uniquesnippet" ,
26- "file_name" : "snippet394.py" ,
27- "content" : "import gitlab" ,
28- }
29- )
30-
3110 statistics = gl .statistics .get ()
32- assert statistics .snippets .isdigit () == True
33- assert statistics .users .isdigit () == True
34- assert statistics .groups .isdigit () == True
35- assert statistics .projects .isdigit () == True
11+ assert statistics .snippets .isdigit ()
12+ assert statistics .users .isdigit ()
13+ assert statistics .groups .isdigit ()
14+ assert statistics .projects .isdigit ()
You can’t perform that action at this time.
0 commit comments