Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Attempt 3: this is not the correct name for this setting
Signed-off-by: Chris Warrick <kwpolska@gmail.com>
  • Loading branch information
Kwpolska committed Mar 26, 2017
1 parent 27a2222 commit d5c86cd
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions tests/test_integration.py
Expand Up @@ -544,15 +544,15 @@ def fill_site(self):
with io.open(target_path, "w+", encoding="utf8") as outf:
outf.write("foo")

class PageIndexesTest(EmptyBuildTest):
"""Test if PAGE_INDEXES works."""
class PageIndexTest(EmptyBuildTest):
"""Test if PAGE_INDEX works."""

@classmethod
def patch_site(self):
"""Enable PAGE_INDEXES."""
"""Enable PAGE_INDEX."""
conf_path = os.path.join(self.target_dir, "conf.py")
with io.open(conf_path, "a", encoding="utf8") as outf:
outf.write("""\n\nPAGE_INDEXES = True\n\n""")
outf.write("""\n\nPAGE_INDEX = True\n\n""")

@classmethod
def fill_site(self):
Expand All @@ -579,8 +579,8 @@ def fill_site(self):
with io.open(os.path.join(subdir2, 'foo.txt'), "w+", encoding="utf8") as outf:
outf.write(".. title: Not the page index\n.. slug: index\n\nThis is not the page index.\n")

def test_page_indexes(self):
"""Test PAGE_INDEXES."""
def test_page_index(self):
"""Test PAGE_INDEX."""
pages = os.path.join(self.target_dir, "output", "pages")
subdir1 = os.path.join(self.target_dir, "output", "pages", "subdir1")
subdir2 = os.path.join(self.target_dir, "output", "pages", "subdir2")
Expand Down

0 comments on commit d5c86cd

Please sign in to comment.