aboutsummaryrefslogtreecommitdiffhomepage
path: root/hugolib/site_url_test.go
diff options
context:
space:
mode:
authorBjørn Erik Pedersen <[email protected]>2023-07-07 18:41:10 +0200
committerBjørn Erik Pedersen <[email protected]>2023-07-08 16:08:46 +0200
commit92e86702eab5d68cd4eda87069fba906139f5c08 (patch)
tree6edb31f509cb321b3ab9d038bfd6d50ea07f6fac /hugolib/site_url_test.go
parent6c9ea022a9022a281031eed75ceb00c4c03f2b5a (diff)
downloadhugo-92e86702eab5d68cd4eda87069fba906139f5c08.tar.gz
hugo-92e86702eab5d68cd4eda87069fba906139f5c08.zip
Fix defaultContentLanguageInSubdir with only 1 language
Fixes #10064
Diffstat (limited to 'hugolib/site_url_test.go')
-rw-r--r--hugolib/site_url_test.go29
1 files changed, 0 insertions, 29 deletions
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()