1
0

Update module go-testfixtures/testfixtures/v3 to v3.2.0 (#505)

Update module go-testfixtures/testfixtures/v3 to v3.2.0

Reviewed-on: https://kolaente.dev/vikunja/api/pulls/505
This commit is contained in:
renovate
2020-05-11 10:10:15 +00:00
committed by konrad
parent a9d0079bf3
commit 55cd74efca
6 changed files with 72 additions and 5 deletions

View File

@ -192,6 +192,25 @@ if err != nil {
}
```
With `Paths` option, you can specify the paths that fixtures will load
from. Path can be directory or file. If directory, we will search YAML files
in it.
```go
fixtures, err := testfixtures.New(
testfixtures.Database(db),
testfixtures.Dialect("postgres"),
testfixtures.Paths(
"fixtures/orders.yml",
"fixtures/customers.yml",
"common_fixtures/users"
),
)
if err != nil {
...
}
```
## Security check
In order to prevent you from accidentally wiping the wrong database, this