summaryrefslogtreecommitdiff
path: root/tools/python_test_v4.py
diff options
context:
space:
mode:
authorGauvain Pocentek <gauvain.pocentek@objectif-libre.com>2017-12-16 07:30:47 +0100
committerGauvain Pocentek <gauvain.pocentek@objectif-libre.com>2017-12-16 07:30:50 +0100
commitb33265c7c235b4365c1a7b2b03ac519ba9e26fa4 (patch)
treeb8b40089fa8191f3d258d9157070cfdc0baaca3b /tools/python_test_v4.py
parent2167409fd6388be6758ae71762af88a466ec648d (diff)
downloadgitlab-b33265c7c235b4365c1a7b2b03ac519ba9e26fa4.tar.gz
Add support for award emojis
Fixes #361
Diffstat (limited to 'tools/python_test_v4.py')
-rw-r--r--tools/python_test_v4.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/tools/python_test_v4.py b/tools/python_test_v4.py
index f9ef83a..ce3c796 100644
--- a/tools/python_test_v4.py
+++ b/tools/python_test_v4.py
@@ -436,6 +436,10 @@ assert(len(admin_project.issues.list(milestone='milestone1')) == 1)
assert(m1.issues().next().title == 'my issue 1')
note = issue1.notes.create({'body': 'This is an issue note'})
assert(len(issue1.notes.list()) == 1)
+emoji = note.awardemojis.create({'name': 'tractor'})
+assert(len(note.awardemojis.list()) == 1)
+emoji.delete()
+assert(len(note.awardemojis.list()) == 0)
note.delete()
assert(len(issue1.notes.list()) == 0)
assert(isinstance(issue1.user_agent_detail(), dict))