diff options
author | Lunny Xiao <xiaolunwen@gmail.com> | 2017-04-28 21:23:28 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-04-28 21:23:28 +0800 |
commit | fca7ddc6ea5ceae298b0a4f33d0b82a2f1ccc06e (patch) | |
tree | c367ef79ac6f3d8c9d18e129395ba0c6a822d535 /integrations/signup_test.go | |
parent | 431b26f6d7d5b2d4700b4a65f1a81094c36a9fae (diff) | |
download | gitea-fca7ddc6ea5ceae298b0a4f33d0b82a2f1ccc06e.tar.gz gitea-fca7ddc6ea5ceae298b0a4f33d0b82a2f1ccc06e.zip |
improve integration test to resue models/fixtures and store git repos with tests (#1627)
* improve integration test to resue models/fixtures and store git repos with source
* use gitea-integration-meta dir instead .tar.gz and cleanup every before every test
* fix import package name
Diffstat (limited to 'integrations/signup_test.go')
-rw-r--r-- | integrations/signup_test.go | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/integrations/signup_test.go b/integrations/signup_test.go index 7d8f27332e..49017b29ff 100644 --- a/integrations/signup_test.go +++ b/integrations/signup_test.go @@ -10,14 +10,14 @@ import ( "net/url" "testing" - "code.gitea.io/gitea/models" "code.gitea.io/gitea/modules/setting" "github.com/stretchr/testify/assert" ) func TestSignup(t *testing.T) { - assert.NoError(t, models.LoadFixtures()) + prepareTestEnv(t) + setting.Service.EnableCaptcha = false req, err := http.NewRequest("POST", "/user/sign_up", |