too many changes to name honestly
This commit is contained in:
@ -2,23 +2,23 @@ package testrig
|
||||
|
||||
import (
|
||||
"github.com/superseriousbusiness/gotosocial/internal/db"
|
||||
"github.com/superseriousbusiness/gotosocial/internal/db/model"
|
||||
"github.com/superseriousbusiness/gotosocial/internal/db/gtsmodel"
|
||||
"github.com/superseriousbusiness/gotosocial/internal/oauth"
|
||||
)
|
||||
|
||||
var testModels []interface{} = []interface{}{
|
||||
&model.Account{},
|
||||
&model.Application{},
|
||||
&model.Block{},
|
||||
&model.DomainBlock{},
|
||||
&model.EmailDomainBlock{},
|
||||
&model.Follow{},
|
||||
&model.FollowRequest{},
|
||||
&model.MediaAttachment{},
|
||||
&model.Mention{},
|
||||
&model.Status{},
|
||||
&model.Tag{},
|
||||
&model.User{},
|
||||
>smodel.Account{},
|
||||
>smodel.Application{},
|
||||
>smodel.Block{},
|
||||
>smodel.DomainBlock{},
|
||||
>smodel.EmailDomainBlock{},
|
||||
>smodel.Follow{},
|
||||
>smodel.FollowRequest{},
|
||||
>smodel.MediaAttachment{},
|
||||
>smodel.Mention{},
|
||||
>smodel.Status{},
|
||||
>smodel.Tag{},
|
||||
>smodel.User{},
|
||||
&oauth.Token{},
|
||||
&oauth.Client{},
|
||||
}
|
||||
@ -61,6 +61,12 @@ func StandardDBSetup(db db.DB) error {
|
||||
}
|
||||
}
|
||||
|
||||
for _, v := range TestStatuses() {
|
||||
if err := db.Put(v); err != nil {
|
||||
return err
|
||||
}
|
||||
}
|
||||
|
||||
return nil
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user