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

Commitd542eba

Browse files
Liora Milbaumnejch
Liora Milbaum
authored andcommitted
chore: topic functional tests
1 parent9a6d197 commitd542eba

File tree

1 file changed

+11
-5
lines changed

1 file changed

+11
-5
lines changed

‎tests/functional/api/test_topics.py

Lines changed: 11 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -10,19 +10,25 @@ def test_topics(gl, gitlab_version):
1010
create_dict= {"name":"my-topic","description":"My Topic"}
1111
ifgitlab_version.major>=15:
1212
create_dict["title"]="my topic title"
13-
topic=gl.topics.create(
14-
{"name":"my-topic","title":"my topic title","description":"My Topic"}
15-
)
13+
topic=gl.topics.create(create_dict)
1614
asserttopic.name=="my-topic"
15+
1716
ifgitlab_version.major>=15:
1817
asserttopic.title=="my topic title"
18+
1919
assertgl.topics.list()
2020

2121
topic.description="My Updated Topic"
2222
topic.save()
23-
2423
updated_topic=gl.topics.get(topic.id)
2524
assertupdated_topic.description==topic.description
2625

27-
topic.delete()
26+
create_dict= {"name":"my-second-topic","description":"My Second Topic"}
27+
ifgitlab_version.major>=15:
28+
create_dict["title"]="my second topic title"
29+
topic2=gl.topics.create(create_dict)
30+
merged_topic=gl.topics.merge(topic.id,topic2.id)
31+
assertmerged_topic["id"]==topic2.id
32+
33+
topic2.delete()
2834
assertnotgl.topics.list()

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp