Skip to content

Commit d5b33f4

Browse files
committed
test: remove unnecessary resource creation from functional statistics test
1 parent 6619835 commit d5b33f4

File tree

1 file changed

+4
-25
lines changed

1 file changed

+4
-25
lines changed

tests/functional/api/test_statistics.py

Lines changed: 4 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -7,29 +7,8 @@
77

88
def 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()

0 commit comments

Comments
 (0)