Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit34c9682

Browse files
committed
test: assert on str instead of int as per gitlab spec
1 parentcbc3419 commit34c9682

File tree

1 file changed

+10
-5
lines changed

1 file changed

+10
-5
lines changed

‎tests/functional/api/test_statistics.py‎

Lines changed: 10 additions & 5 deletions
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-
assertstatistics.snippets==1
23-
assertstatistics.users==1
24-
assertstatistics.groups==1
25-
assertstatistics.projects==1
27+
assertstatistics.snippets=="1"
28+
assertstatistics.users=="1"
29+
assertstatistics.groups=="2"
30+
assertstatistics.projects=="1"

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp