Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit b9f10aa

Browse files
committedMay 17, 2017
fix test
1 parent 1ddc449 commit b9f10aa

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed
 

‎tests/test_integration.py

+7-7
Original file line numberDiff line numberDiff line change
@@ -392,10 +392,10 @@ def patch_site(self):
392392
conf_path = os.path.join(self.target_dir, "conf.py")
393393
with io.open(conf_path, "r", encoding="utf-8") as inf:
394394
data = inf.read()
395-
data = data.replace('("pages/*.txt", "pages", "story.tmpl"),',
396-
'("pages/*.txt", "", "story.tmpl"),')
397-
data = data.replace('("pages/*.rst", "pages", "story.tmpl"),',
398-
'("pages/*.rst", "", "story.tmpl"),')
395+
data = data.replace('("pages/*.txt", "pages", "page.tmpl"),',
396+
'("pages/*.txt", "", "page.tmpl"),')
397+
data = data.replace('("pages/*.rst", "pages", "page.tmpl"),',
398+
'("pages/*.rst", "", "page.tmpl"),')
399399
data = data.replace('# INDEX_PATH = ""',
400400
'INDEX_PATH = "blog"')
401401
with io.open(conf_path, "w+", encoding="utf8") as outf:
@@ -553,7 +553,7 @@ def patch_site(self):
553553
"""Enable post sections."""
554554
conf_path = os.path.join(self.target_dir, "conf.py")
555555
with io.open(conf_path, "a", encoding="utf8") as outf:
556-
outf.write("""\n\nPOSTS_SECTIONS = True\nPOSTS_SECTIONS_ARE_INDEXES = True\nPRETTY_URLS = True\nPOSTS = (('posts/*.txt', '', 'post.tmpl'),)\nPAGES = (('pages/*.txt', '', 'story.tmpl'),)\n\n""")
556+
outf.write("""\n\nPOSTS_SECTIONS = True\nPOSTS_SECTIONS_ARE_INDEXES = True\nPRETTY_URLS = True\nPOSTS = (('posts/*.txt', '', 'post.tmpl'),)\nPAGES = (('pages/*.txt', '', 'page.tmpl'),)\n\n""")
557557

558558
@classmethod
559559
def fill_site(self):
@@ -602,7 +602,7 @@ def patch_site(self):
602602
"""Enable PAGE_INDEX."""
603603
conf_path = os.path.join(self.target_dir, "conf.py")
604604
with io.open(conf_path, "a", encoding="utf8") as outf:
605-
outf.write("""\n\nPAGE_INDEX = True\nPRETTY_URLS = False\nPAGES = PAGES + (('pages/*.php', 'pages', 'story.tmpl'),)\n\n""")
605+
outf.write("""\n\nPAGE_INDEX = True\nPRETTY_URLS = False\nPAGES = PAGES + (('pages/*.php', 'pages', 'page.tmpl'),)\n\n""")
606606

607607
@classmethod
608608
def fill_site(self):
@@ -707,7 +707,7 @@ def patch_site(self):
707707
"""Enable PAGE_INDEX."""
708708
conf_path = os.path.join(self.target_dir, "conf.py")
709709
with io.open(conf_path, "a", encoding="utf8") as outf:
710-
outf.write("""\n\nPAGE_INDEX = True\nPRETTY_URLS = True\nPAGES = PAGES + (('pages/*.php', 'pages', 'story.tmpl'),)\n\n""")
710+
outf.write("""\n\nPAGE_INDEX = True\nPRETTY_URLS = True\nPAGES = PAGES + (('pages/*.php', 'pages', 'page.tmpl'),)\n\n""")
711711

712712
def _make_output_path(self, dir, name):
713713
"""Make a file path to the output."""

0 commit comments

Comments
 (0)
Please sign in to comment.