Skip to content

Commit

Permalink
fix errors in tests
Browse files Browse the repository at this point in the history
Signed-off-by: Venu Vardhan Reddy Tekula <[email protected]>
  • Loading branch information
vchrombie committed Jun 9, 2020
1 parent 55de360 commit 240e81d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 20 deletions.
16 changes: 0 additions & 16 deletions tests/data/gitlabcomments.json
Original file line number Diff line number Diff line change
Expand Up @@ -38,22 +38,6 @@
"web_url": "https://gitlab.com/vchrombie"
}
},
{
"awardable_id": 32985061,
"awardable_type": "Issue",
"created_at": "2020-05-26T16:50:56.645Z",
"id": 4567388,
"name": "basketball_player",
"updated_at": "2020-05-26T16:50:56.645Z",
"user": {
"avatar_url": "https://assets.gitlab-static.net/uploads/-/system/user/avatar/2409720/avatar.png",
"id": 2409720,
"name": "Venu Vardhan Reddy Tekula",
"state": "active",
"username": "vchrombie",
"web_url": "https://gitlab.com/vchrombie"
}
},
{
"awardable_id": 32985061,
"awardable_type": "Issue",
Expand Down
6 changes: 2 additions & 4 deletions tests/test_gitlabcomments.py
Original file line number Diff line number Diff line change
Expand Up @@ -66,12 +66,10 @@ def test_raw_to_enrich(self):
eitem = enrich_backend.get_rich_item(item)
self.assertEqual(item['category'], 'issue')
self.assertEqual(eitem['issue_labels'], ['UI', 'enhancement', 'feature'])
self.assertEqual(eitem['reactions'][0]['type'], 'thumbsup')
self.assertEqual(eitem['reactions'][0]['type'], 'thumbsdown')
self.assertEqual(eitem['reactions'][0]['count'], 1)
self.assertEqual(eitem['reactions'][1]['type'], 'basketball_player')
self.assertEqual(eitem['reactions'][1]['type'], 'thumbsup')
self.assertEqual(eitem['reactions'][1]['count'], 1)
self.assertEqual(eitem['reactions'][2]['type'], 'thumbsdown')
self.assertEqual(eitem['reactions'][2]['count'], 1)
self.assertNotEqual(eitem['state'], 'closed')
self.assertEqual(eitem['time_open_days'], 63.02)

Expand Down

0 comments on commit 240e81d

Please sign in to comment.