|
8 | 8 | fromgitlab.v4.objectsimportTopic |
9 | 9 |
|
10 | 10 | name="GitLab" |
| 11 | +topic_title="topic title" |
11 | 12 | new_name="gitlab-test" |
12 | 13 | topic_content= { |
13 | 14 | "id":1, |
14 | 15 | "name":name, |
| 16 | +"title":topic_title, |
15 | 17 | "description":"GitLab is an open source end-to-end software development platform.", |
16 | 18 | "total_projects_count":1000, |
17 | 19 | "avatar_url":"http://www.gravatar.com/avatar/a0d477b3ea21970ce6ffcbb817b0b435?s=80&d=identicon", |
@@ -102,9 +104,10 @@ def test_get_topic(gl, resp_get_topic): |
102 | 104 |
|
103 | 105 |
|
104 | 106 | deftest_create_topic(gl,resp_create_topic): |
105 | | -topic=gl.topics.create({"name":name}) |
| 107 | +topic=gl.topics.create({"name":name,"title":topic_title}) |
106 | 108 | assertisinstance(topic,Topic) |
107 | 109 | asserttopic.name==name |
| 110 | +asserttopic.title==topic_title |
108 | 111 |
|
109 | 112 |
|
110 | 113 | deftest_update_topic(gl,resp_update_topic): |
|