Skip to content

Commit

Permalink
external redirect test
Browse files Browse the repository at this point in the history
  • Loading branch information
da2x committed Jun 1, 2015
1 parent 9e8ed2d commit 55391f9
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions tests/test_integration.py
Expand Up @@ -249,6 +249,15 @@ def fill_site(self):
with io.open(target_path, "w+", encoding="utf8") as outf:
outf.write("foo")

class RedirectionsTest2(EmptyBuildTest):
"""Check REDIRECTS"""

@classmethod
def patch_site(self):
""""""
conf_path = os.path.join(self.target_dir, "conf.py")
with io.open(conf_path, "a", encoding="utf8") as outf:
outf.write("""\n\nREDIRECTS = [ ("foo.html", "http://www.example.com/"), ]\n\n""")

class MissingDefaultLanguageTest(TranslatedBuildTest):
"""Make sure posts only in secondary languages work."""
Expand Down

0 comments on commit 55391f9

Please sign in to comment.