mirror of
https://codeberg.org/forgejo/forgejo.git
synced 2024-11-10 04:05:42 +01:00
Use GetDisplayName() instead of DisplayName() to generate rss feeds (followup)
The test only exists in Forgejo and the behavior it verifies now require setting.UI.DefaultShowFullName to be true.
This commit is contained in:
parent
e465ac854d
commit
3d1b8f47c0
1 changed files with 3 additions and 0 deletions
|
@ -7,6 +7,8 @@ import (
|
||||||
"net/http"
|
"net/http"
|
||||||
"testing"
|
"testing"
|
||||||
|
|
||||||
|
"code.gitea.io/gitea/modules/setting"
|
||||||
|
"code.gitea.io/gitea/modules/test"
|
||||||
"code.gitea.io/gitea/tests"
|
"code.gitea.io/gitea/tests"
|
||||||
|
|
||||||
"github.com/stretchr/testify/assert"
|
"github.com/stretchr/testify/assert"
|
||||||
|
@ -15,6 +17,7 @@ import (
|
||||||
func TestFeedPlainTextTitles(t *testing.T) {
|
func TestFeedPlainTextTitles(t *testing.T) {
|
||||||
// This test verifies that items' titles in feeds are generated as plain text.
|
// This test verifies that items' titles in feeds are generated as plain text.
|
||||||
// See https://codeberg.org/forgejo/forgejo/pulls/1595
|
// See https://codeberg.org/forgejo/forgejo/pulls/1595
|
||||||
|
defer test.MockVariableValue(&setting.UI.DefaultShowFullName, true)()
|
||||||
|
|
||||||
t.Run("Feed plain text titles", func(t *testing.T) {
|
t.Run("Feed plain text titles", func(t *testing.T) {
|
||||||
t.Run("Atom", func(t *testing.T) {
|
t.Run("Atom", func(t *testing.T) {
|
||||||
|
|
Loading…
Reference in a new issue