Start test fixtures

This commit is contained in:
kolaente 2021-07-11 18:04:03 +02:00
parent ff68c88a7f
commit 982a55dd58
Signed by: konrad
GPG Key ID: F40E70337AB24C9B
3 changed files with 2 additions and 1 deletions

View File

View File

@ -36,5 +36,6 @@ func GetTables() []interface{} {
return []interface{}{
&User{},
&TOTP{},
&Token{},
}
}

View File

@ -34,7 +34,7 @@ func InitTests() {
log.Fatal(err)
}
err = db.InitTestFixtures("users")
err = db.InitTestFixtures("users", "user_tokens")
if err != nil {
log.Fatal(err)
}