diff options
Diffstat (limited to 'models/asymkey/main_test.go')
-rw-r--r-- | models/asymkey/main_test.go | 19 |
1 files changed, 11 insertions, 8 deletions
diff --git a/models/asymkey/main_test.go b/models/asymkey/main_test.go index 1c4f7752e2..9f53e335fe 100644 --- a/models/asymkey/main_test.go +++ b/models/asymkey/main_test.go @@ -18,12 +18,15 @@ func init() { } func TestMain(m *testing.M) { - unittest.MainTest(m, filepath.Join("..", ".."), - "gpg_key.yml", - "public_key.yml", - "deploy_key.yml", - "gpg_key_import.yml", - "user.yml", - "email_address.yml", - ) + unittest.MainTest(m, &unittest.TestOptions{ + GiteaRootPath: filepath.Join("..", ".."), + FixtureFiles: []string{ + "gpg_key.yml", + "public_key.yml", + "deploy_key.yml", + "gpg_key_import.yml", + "user.yml", + "email_address.yml", + }, + }) } |