diff options
Diffstat (limited to 'community/hugo/0001-Remove-git-tests.patch')
-rw-r--r-- | community/hugo/0001-Remove-git-tests.patch | 50 |
1 files changed, 24 insertions, 26 deletions
diff --git a/community/hugo/0001-Remove-git-tests.patch b/community/hugo/0001-Remove-git-tests.patch index db2eb43533..f786271179 100644 --- a/community/hugo/0001-Remove-git-tests.patch +++ b/community/hugo/0001-Remove-git-tests.patch @@ -1,32 +1,32 @@ -From a77897023bc3379f9ed15080d88dd944f3f51f94 Mon Sep 17 00:00:00 2001 -From: Drew DeVault <sir@cmpwn.com> -Date: Fri, 8 Mar 2019 19:46:32 -0500 -Subject: [PATCH] Remove git tests - ---- - hugolib/page_test.go | 60 ----------------------------------- - releaser/git_test.go | 75 -------------------------------------------- - 2 files changed, 135 deletions(-) - delete mode 100644 releaser/git_test.go - -diff --git a/hugolib/page_test.go b/hugolib/page_test.go -index 1db1d352..07c17e6d 100644 --- a/hugolib/page_test.go +++ b/hugolib/page_test.go -@@ -26,9 +26,6 @@ import ( +@@ -16,7 +16,6 @@ + import ( + "fmt" + "html/template" +- "os" + + "github.com/gohugoio/hugo/common/loggers" + +@@ -25,12 +24,9 @@ "testing" "time" - "github.com/gohugoio/hugo/hugofs" -- "github.com/spf13/afero" - + "github.com/gohugoio/hugo/resources/page" + "github.com/gohugoio/hugo/resources/resource" + +- "github.com/spf13/afero" "github.com/spf13/viper" "github.com/gohugoio/hugo/deps" -@@ -861,63 +858,6 @@ func TestPageWithDate(t *testing.T) { - checkPageDate(t, p, d) - } +@@ -760,63 +756,6 @@ + d, _ := time.Parse(time.RFC3339, "2013-05-17T16:59:30Z") + checkPageDate(t, p, d) +-} +- -func TestPageWithLastmodFromGitInfo(t *testing.T) { - assrt := require.New(t) - @@ -71,22 +71,20 @@ index 1db1d352..07c17e6d 100644 - require.NoError(t, h.Build(BuildCfg{SkipRender: true})) - - enSite := h.Sites[0] -- assrt.Len(enSite.RegularPages, 1) +- assrt.Len(enSite.RegularPages(), 1) - - // 2018-03-11 is the Git author date for testsite/content/first-post.md -- assrt.Equal("2018-03-11", enSite.RegularPages[0].Lastmod.Format("2006-01-02")) +- assrt.Equal("2018-03-11", enSite.RegularPages()[0].Lastmod().Format("2006-01-02")) - - nnSite := h.Sites[1] -- assrt.Len(nnSite.RegularPages, 1) +- assrt.Len(nnSite.RegularPages(), 1) - - // 2018-08-11 is the Git author date for testsite/content_nn/first-post.md -- assrt.Equal("2018-08-11", nnSite.RegularPages[0].Lastmod.Format("2006-01-02")) -- --} +- assrt.Equal("2018-08-11", nnSite.RegularPages()[0].Lastmod().Format("2006-01-02")) - - func TestPageWithFrontMatterConfig(t *testing.T) { - t.Parallel() + } + func TestPageWithFrontMatterConfig(t *testing.T) { diff --git a/releaser/git_test.go b/releaser/git_test.go deleted file mode 100644 index f0d6fd24..00000000 |