mirror of
https://codeberg.org/forgejo/forgejo.git
synced 2025-01-13 15:59:33 -05:00
21 lines
384 B
Go
21 lines
384 B
Go
|
// Copyright 2023 The Forgejo Authors. All rights reserved.
|
||
|
// SPDX-License-Identifier: MIT
|
||
|
|
||
|
package setting
|
||
|
|
||
|
import (
|
||
|
"testing"
|
||
|
|
||
|
"github.com/stretchr/testify/assert"
|
||
|
)
|
||
|
|
||
|
func TestDisableGravatar(t *testing.T) {
|
||
|
assert.True(t, GetDefaultDisableGravatar())
|
||
|
|
||
|
cfg, err := NewConfigProviderFromData(``)
|
||
|
assert.NoError(t, err)
|
||
|
loadAvatarsFrom(cfg)
|
||
|
|
||
|
assert.True(t, DisableGravatar)
|
||
|
}
|