@@ -562,36 +562,36 @@ func TestNewUserRedirect3(t *testing.T) {
562562}
563563
564564func TestFollowUser (t * testing.T ) {
565- assert .NoError (t , db .PrepareTestDatabase ())
565+ assert .NoError (t , unittest .PrepareTestDatabase ())
566566
567567 testSuccess := func (followerID , followedID int64 ) {
568568 assert .NoError (t , user_model .FollowUser (followerID , followedID ))
569- db .AssertExistsAndLoadBean (t , & user_model.Follow {UserID : followerID , FollowID : followedID })
569+ unittest .AssertExistsAndLoadBean (t , & user_model.Follow {UserID : followerID , FollowID : followedID })
570570 }
571571 testSuccess (4 , 2 )
572572 testSuccess (5 , 2 )
573573
574574 assert .NoError (t , user_model .FollowUser (2 , 2 ))
575575
576- CheckConsistencyFor (t , & User {})
576+ unittest . CheckConsistencyFor (t , & User {})
577577}
578578
579579func TestUnfollowUser (t * testing.T ) {
580- assert .NoError (t , db .PrepareTestDatabase ())
580+ assert .NoError (t , unittest .PrepareTestDatabase ())
581581
582582 testSuccess := func (followerID , followedID int64 ) {
583583 assert .NoError (t , user_model .UnfollowUser (followerID , followedID ))
584- db .AssertNotExistsBean (t , & user_model.Follow {UserID : followerID , FollowID : followedID })
584+ unittest .AssertNotExistsBean (t , & user_model.Follow {UserID : followerID , FollowID : followedID })
585585 }
586586 testSuccess (4 , 2 )
587587 testSuccess (5 , 2 )
588588 testSuccess (2 , 2 )
589589
590- CheckConsistencyFor (t , & User {})
590+ unittest . CheckConsistencyFor (t , & User {})
591591}
592592
593593func TestGetUserByOpenID (t * testing.T ) {
594- assert .NoError (t , db .PrepareTestDatabase ())
594+ assert .NoError (t , unittest .PrepareTestDatabase ())
595595
596596 _ , err := GetUserByOpenID ("https://unknown" )
597597 if assert .Error (t , err ) {
0 commit comments