Skip to content

Commit 240e81d

Browse files
committed
fix errors in tests
Signed-off-by: Venu Vardhan Reddy Tekula <[email protected]>
1 parent 55de360 commit 240e81d

File tree

2 files changed

+2
-20
lines changed

2 files changed

+2
-20
lines changed

tests/data/gitlabcomments.json

Lines changed: 0 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -38,22 +38,6 @@
3838
"web_url": "https://gitlab.com/vchrombie"
3939
}
4040
},
41-
{
42-
"awardable_id": 32985061,
43-
"awardable_type": "Issue",
44-
"created_at": "2020-05-26T16:50:56.645Z",
45-
"id": 4567388,
46-
"name": "basketball_player",
47-
"updated_at": "2020-05-26T16:50:56.645Z",
48-
"user": {
49-
"avatar_url": "https://assets.gitlab-static.net/uploads/-/system/user/avatar/2409720/avatar.png",
50-
"id": 2409720,
51-
"name": "Venu Vardhan Reddy Tekula",
52-
"state": "active",
53-
"username": "vchrombie",
54-
"web_url": "https://gitlab.com/vchrombie"
55-
}
56-
},
5741
{
5842
"awardable_id": 32985061,
5943
"awardable_type": "Issue",

tests/test_gitlabcomments.py

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -66,12 +66,10 @@ def test_raw_to_enrich(self):
6666
eitem = enrich_backend.get_rich_item(item)
6767
self.assertEqual(item['category'], 'issue')
6868
self.assertEqual(eitem['issue_labels'], ['UI', 'enhancement', 'feature'])
69-
self.assertEqual(eitem['reactions'][0]['type'], 'thumbsup')
69+
self.assertEqual(eitem['reactions'][0]['type'], 'thumbsdown')
7070
self.assertEqual(eitem['reactions'][0]['count'], 1)
71-
self.assertEqual(eitem['reactions'][1]['type'], 'basketball_player')
71+
self.assertEqual(eitem['reactions'][1]['type'], 'thumbsup')
7272
self.assertEqual(eitem['reactions'][1]['count'], 1)
73-
self.assertEqual(eitem['reactions'][2]['type'], 'thumbsdown')
74-
self.assertEqual(eitem['reactions'][2]['count'], 1)
7573
self.assertNotEqual(eitem['state'], 'closed')
7674
self.assertEqual(eitem['time_open_days'], 63.02)
7775

0 commit comments

Comments
 (0)