Fix test fixtures

This commit is contained in:
kolaente 2021-07-12 22:32:00 +02:00
parent 73f8d061cc
commit 442a945e60
Signed by: konrad
GPG Key ID: F40E70337AB24C9B
4 changed files with 15 additions and 16 deletions

View File

@ -1,15 +1,18 @@
- id: 1
-
id: 1
user_id: 3
token: passwordresettesttoken
token: 'passwordresettesttoken'
kind: 1
created: 2021-07-12 00:00:12
- id: 2
created: 2021-07-12 00:00:11
-
id: 2
user_id: 4
token: tiepiQueed8ahc7zeeFe1eveiy4Ein8osooxegiephauph2Ael
token: 'tiepiQueed8ahc7zeeFe1eveiy4Ein8osooxegiephauph2Ael'
kind: 2
created: 2021-07-12 00:00:12
- id: 3
-
id: 3
user_id: 5
token: tiepiQueed8ahc7zeeFe1eveiy4Ein8osooxegiephauph2Ael
token: 'tiepiQueed8ahc7zeeFe1eveiy4Ein8osooxegiephauph2Aei'
kind: 2
created: 2021-07-12 00:00:12
created: 2021-07-12 00:00:13

View File

@ -59,10 +59,6 @@ func InitFixtures(tablenames ...string) (err error) {
}
fixtures, err = testfixtures.New(loaderOptions...)
if err != nil {
return err
}
return err
}
@ -106,7 +102,7 @@ func LoadFixtures() error {
}
}
}
return err
return nil
}
// LoadAndAssertFixtures loads all fixtures defined before and asserts they are correctly loaded

View File

@ -17,6 +17,7 @@
package integrations
import (
"code.vikunja.io/api/pkg/files"
"net/http"
"net/http/httptest"
"net/url"
@ -24,11 +25,9 @@ import (
"strings"
"testing"
"code.vikunja.io/api/pkg/events"
"code.vikunja.io/api/pkg/config"
"code.vikunja.io/api/pkg/db"
"code.vikunja.io/api/pkg/files"
"code.vikunja.io/api/pkg/events"
"code.vikunja.io/api/pkg/models"
"code.vikunja.io/api/pkg/modules/auth"
"code.vikunja.io/api/pkg/routes"

View File

@ -55,6 +55,7 @@ func SetupTests() {
"team_namespaces",
"teams",
"users",
"user_tokens",
"users_lists",
"users_namespaces",
"buckets",