blob: dea457c30ffa8217598fbc6ead07b57fc278d676 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
|
"""
GitLab API:
https://docs.gitlab.com/ce/api/topics.html
"""
def test_topics(gl):
assert not gl.topics.list()
topic = gl.topics.create({"name": "my-topic", "description": "My Topic"})
assert topic.name == "my-topic"
assert gl.topics.list()
topic.description = "My Updated Topic"
topic.save()
updated_topic = gl.topics.get(topic.id)
assert updated_topic.description == topic.description
|