From 92e86702eab5d68cd4eda87069fba906139f5c08 Mon Sep 17 00:00:00 2001 From: Bjørn Erik Pedersen Date: Fri, 7 Jul 2023 18:41:10 +0200 Subject: Fix defaultContentLanguageInSubdir with only 1 language Fixes #10064 --- hugolib/site_url_test.go | 29 ----------------------------- 1 file changed, 29 deletions(-) (limited to 'hugolib/site_url_test.go') diff --git a/hugolib/site_url_test.go b/hugolib/site_url_test.go index cb69be4ca..821c84c95 100644 --- a/hugolib/site_url_test.go +++ b/hugolib/site_url_test.go @@ -38,35 +38,6 @@ var urlFakeSource = [][2]string{ {filepath.FromSlash("content/blue/doc2.md"), slugDoc2}, } -func TestPageCount(t *testing.T) { - t.Parallel() - c := qt.New(t) - cfg, fs := newTestCfg() - cfg.Set("uglyURLs", false) - cfg.Set("paginate", 10) - configs, err := loadTestConfigFromProvider(cfg) - c.Assert(err, qt.IsNil) - - writeSourcesToSource(t, "", fs, urlFakeSource...) - s := buildSingleSite(t, deps.DepsCfg{Fs: fs, Configs: configs}, BuildCfg{}) - - _, err = s.Fs.WorkingDirReadOnly.Open("public/blue") - if err != nil { - t.Errorf("No indexed rendered.") - } - - for _, pth := range []string{ - "public/sd1/foo/index.html", - "public/sd2/index.html", - "public/sd3/index.html", - "public/sd4.html", - } { - if _, err := s.Fs.WorkingDirReadOnly.Open(filepath.FromSlash(pth)); err != nil { - t.Errorf("No alias rendered: %s", pth) - } - } -} - func TestUglyURLsPerSection(t *testing.T) { t.Parallel() -- cgit v1.2.3