@@ -37,6 +37,9 @@ func TestPullRequest_LoadIssue(t *testing.T) {
37
37
assert .NoError (t , pr .LoadIssue ())
38
38
assert .NotNil (t , pr .Issue )
39
39
assert .Equal (t , int64 (2 ), pr .Issue .ID )
40
+ assert .NoError (t , pr .LoadIssue ())
41
+ assert .NotNil (t , pr .Issue )
42
+ assert .Equal (t , int64 (2 ), pr .Issue .ID )
40
43
}
41
44
42
45
// TODO TestPullRequest_APIFormat
@@ -47,6 +50,9 @@ func TestPullRequest_GetBaseRepo(t *testing.T) {
47
50
assert .NoError (t , pr .GetBaseRepo ())
48
51
assert .NotNil (t , pr .BaseRepo )
49
52
assert .Equal (t , pr .BaseRepoID , pr .BaseRepo .ID )
53
+ assert .NoError (t , pr .GetBaseRepo ())
54
+ assert .NotNil (t , pr .BaseRepo )
55
+ assert .Equal (t , pr .BaseRepoID , pr .BaseRepo .ID )
50
56
}
51
57
52
58
func TestPullRequest_GetHeadRepo (t * testing.T ) {
@@ -231,6 +237,8 @@ func TestPullRequestList_LoadAttributes(t *testing.T) {
231
237
assert .NotNil (t , pr .Issue )
232
238
assert .Equal (t , pr .IssueID , pr .Issue .ID )
233
239
}
240
+
241
+ assert .NoError (t , PullRequestList ([]* PullRequest {}).LoadAttributes ())
234
242
}
235
243
236
244
// TODO TestAddTestPullRequestTask
0 commit comments