mirror of
https://codeberg.org/forgejo/forgejo.git
synced 2025-10-24 19:12:24 +00:00
[TESTS] tests.AddFixtures helper loads additional per-test fixtures
(cherry picked from commit93a844dd13) (cherry picked from commit6d6d1a121c) (cherry picked from commit34646f9886) (cherry picked from commit83801a64cf) (cherry picked from commitc9a1e55a80) (cherry picked from commit6c7292419c) (cherry picked from commit5439218f1a)
This commit is contained in:
parent
12ef8a7937
commit
de6474c3c7
3 changed files with 30 additions and 0 deletions
|
|
@ -197,6 +197,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