forked from forgejo/forgejo
[TESTS] tests.AddFixtures helper loads additional per-test fixtures
(cherry picked from commit93a844dd13
) (cherry picked from commit6d6d1a121c
) (cherry picked from commit8b101f2860
) (cherry picked from commit3e56212d6d
) (cherry picked from commit4f619bc585
) (cherry picked from commit06a47ea56e
) (cherry picked from commit5a4d56e77b
) (cherry picked from commit84b9d3a0c3
)
This commit is contained in:
parent
40d49b5107
commit
1eb2eca71c
3 changed files with 30 additions and 0 deletions
|
@ -208,6 +208,8 @@ func MainTest(m *testing.M, testOpts ...*TestOptions) {
|
|||
type FixturesOptions struct {
|
||||
Dir string
|
||||
Files []string
|
||||
Dirs []string
|
||||
Base string
|
||||
}
|
||||
|
||||
// CreateTestEngine creates a memory database and loads the fixture data from fixturesDir
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue