Update Default Settings for Tests (#435) (#436)

Update Default Settings for Tests (#435)

Update Default Settings for Tests

Co-authored-by: 6543 <6543@obermui.de>
Reviewed-on: https://gitea.com/gitea/go-sdk/pulls/435
Reviewed-by: techknowlogick <techknowlogick@gitea.io>
Reviewed-by: Andrew Thornton <art27@cantab.net>

Reviewed-on: https://gitea.com/gitea/go-sdk/pulls/436
Reviewed-by: techknowlogick <techknowlogick@gitea.io>
Reviewed-by: Lunny Xiao <xiaolunwen@gmail.com>
This commit is contained in:
6543 2020-10-07 03:36:38 +00:00 committed by Lunny Xiao
parent 2e4d339799
commit 6365100abb

View file

@ -40,7 +40,7 @@ func TestGetGlobalSettings(t *testing.T) {
assert.NoError(t, err)
assert.EqualValues(t, &GlobalAttachmentSettings{
Enabled: true,
AllowedTypes: "image/jpeg,image/png,application/zip,application/gzip",
AllowedTypes: ".docx,.gif,.gz,.jpeg,.jpg,.log,.pdf,.png,.pptx,.txt,.xlsx,.zip",
MaxSize: 4,
MaxFiles: 5,
}, attachSettings)