diff options
author | Lunny Xiao <xiaolunwen@gmail.com> | 2021-09-24 19:32:56 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-09-24 19:32:56 +0800 |
commit | 5842a55b3103d3f09751eb7b3b049415197debad (patch) | |
tree | f4c0ab5d74f4bcfaf416cc9a592ee7f743be7dc5 /integrations/integration_test.go | |
parent | 4a2655098fd1a594c7d33a144932bb5ec2fd7cd9 (diff) | |
download | gitea-5842a55b3103d3f09751eb7b3b049415197debad.tar.gz gitea-5842a55b3103d3f09751eb7b3b049415197debad.zip |
Move login related structs and functions to models/login (#17093)
* Move login related structs and functions to models/login
* Fix test
* Fix lint
* Fix lint
* Fix lint of windows
* Fix lint
* Fix test
* Fix test
* Only load necessary fixtures when preparing unit tests envs
* Fix lint
* Fix test
* Fix test
* Fix error log
* Fix error log
* Fix error log
* remove unnecessary change
* fix error log
* merge main branch
Diffstat (limited to 'integrations/integration_test.go')
-rw-r--r-- | integrations/integration_test.go | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/integrations/integration_test.go b/integrations/integration_test.go index fac36320cf..1429893270 100644 --- a/integrations/integration_test.go +++ b/integrations/integration_test.go @@ -113,7 +113,9 @@ func TestMain(m *testing.M) { } err := db.InitFixtures( - path.Join(filepath.Dir(setting.AppPath), "models/fixtures/"), + db.FixturesOptions{ + Dir: filepath.Join(filepath.Dir(setting.AppPath), "models/fixtures/"), + }, ) if err != nil { fmt.Printf("Error initializing test database: %v\n", err) |