File tree Expand file tree Collapse file tree 2 files changed +2
-20
lines changed Expand file tree Collapse file tree 2 files changed +2
-20
lines changed Original file line number Diff line number Diff line change 38
38
"web_url" : " https://gitlab.com/vchrombie"
39
39
}
40
40
},
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
- },
57
41
{
58
42
"awardable_id" : 32985061 ,
59
43
"awardable_type" : " Issue" ,
Original file line number Diff line number Diff line change @@ -66,12 +66,10 @@ def test_raw_to_enrich(self):
66
66
eitem = enrich_backend .get_rich_item (item )
67
67
self .assertEqual (item ['category' ], 'issue' )
68
68
self .assertEqual (eitem ['issue_labels' ], ['UI' , 'enhancement' , 'feature' ])
69
- self .assertEqual (eitem ['reactions' ][0 ]['type' ], 'thumbsup ' )
69
+ self .assertEqual (eitem ['reactions' ][0 ]['type' ], 'thumbsdown ' )
70
70
self .assertEqual (eitem ['reactions' ][0 ]['count' ], 1 )
71
- self .assertEqual (eitem ['reactions' ][1 ]['type' ], 'basketball_player ' )
71
+ self .assertEqual (eitem ['reactions' ][1 ]['type' ], 'thumbsup ' )
72
72
self .assertEqual (eitem ['reactions' ][1 ]['count' ], 1 )
73
- self .assertEqual (eitem ['reactions' ][2 ]['type' ], 'thumbsdown' )
74
- self .assertEqual (eitem ['reactions' ][2 ]['count' ], 1 )
75
73
self .assertNotEqual (eitem ['state' ], 'closed' )
76
74
self .assertEqual (eitem ['time_open_days' ], 63.02 )
77
75
You can’t perform that action at this time.
0 commit comments