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:
19
vendor/github.com/go-testfixtures/testfixtures/v3/README.md
generated
vendored
19
vendor/github.com/go-testfixtures/testfixtures/v3/README.md
generated
vendored
@ -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
|
||||
|
Reference in New Issue
Block a user