mirror of
https://github.com/superseriousbusiness/gotosocial.git
synced 2025-11-14 21:17:29 -06:00
trying emoji stuff
This commit is contained in:
parent
9826f3f6d9
commit
046c5e91fb
7 changed files with 85 additions and 12 deletions
|
|
@ -58,10 +58,6 @@ func NewTestDB() db.DB {
|
|||
|
||||
// StandardDBSetup populates a given db with all the necessary tables/models for perfoming tests.
|
||||
func StandardDBSetup(db db.DB) {
|
||||
if err := db.CreateInstanceAccount(); err != nil {
|
||||
panic(err)
|
||||
}
|
||||
|
||||
for _, m := range testModels {
|
||||
if err := db.CreateTable(m); err != nil {
|
||||
panic(err)
|
||||
|
|
@ -109,6 +105,10 @@ func StandardDBSetup(db db.DB) {
|
|||
panic(err)
|
||||
}
|
||||
}
|
||||
|
||||
if err := db.CreateInstanceAccount(); err != nil {
|
||||
panic(err)
|
||||
}
|
||||
}
|
||||
|
||||
// StandardDBTeardown drops all the standard testing tables/models from the database to ensure it's clean for the next test.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue