Skip to content
Permalink
Browse files
external redirect test
  • Loading branch information
da2x committed Jun 1, 2015
1 parent 9e8ed2d commit 55391f9d27791e2ed8338c2725d81fa2a8ec6a01
Showing 1 changed file with 9 additions and 0 deletions.
@@ -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."""

0 comments on commit 55391f9

Please sign in to comment.