mirror of
https://github.com/go-gitea/gitea.git
synced 2024-05-11 05:55:29 +00:00
Less verbose integration tests (#2123)
* Helper functions for intergration test boilerplate
This commit is contained in:
committed by
Kim "BKC" Carlbäcker
parent
5651cc7413
commit
f1adaef458
@ -19,8 +19,7 @@ func TestVersion(t *testing.T) {
|
||||
|
||||
setting.AppVer = "1.1.0+dev"
|
||||
req := NewRequest(t, "GET", "/api/v1/version")
|
||||
resp := MakeRequest(req)
|
||||
assert.EqualValues(t, http.StatusOK, resp.HeaderCode)
|
||||
resp := MakeRequest(t, req, http.StatusOK)
|
||||
|
||||
var version gitea.ServerVersion
|
||||
DecodeJSON(t, resp, &version)
|
||||
|
Reference in New Issue
Block a user