mirror of
https://github.com/superseriousbusiness/gotosocial.git
synced 2025-11-10 10:07:29 -06:00
too many changes to name honestly
This commit is contained in:
parent
e6c590c065
commit
f210d39891
85 changed files with 1178 additions and 587 deletions
|
|
@ -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
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue