too many changes to name honestly

This commit is contained in:
tsmethurst
2021-04-08 23:29:35 +02:00
parent e6c590c065
commit f210d39891
85 changed files with 1178 additions and 587 deletions

View File

@ -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{},
&gtsmodel.Account{},
&gtsmodel.Application{},
&gtsmodel.Block{},
&gtsmodel.DomainBlock{},
&gtsmodel.EmailDomainBlock{},
&gtsmodel.Follow{},
&gtsmodel.FollowRequest{},
&gtsmodel.MediaAttachment{},
&gtsmodel.Mention{},
&gtsmodel.Status{},
&gtsmodel.Tag{},
&gtsmodel.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
}