Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Use demo.getnikola.com in nikola check tests
Signed-off-by: Chris Warrick <kwpolska@gmail.com>
  • Loading branch information
Kwpolska committed May 4, 2015
1 parent e427fc0 commit 72b050a
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions tests/test_integration.py
Expand Up @@ -321,7 +321,7 @@ class TestCheckAbsoluteSubFolder(TestCheck):
"""Validate links in a site which is:
* built in URL_TYPE="absolute"
* deployable to a subfolder (BASE_URL="http://getnikola.com/foo/")
* deployable to a subfolder (BASE_URL="http://demo.getnikola.com/foo/")
"""

@classmethod
Expand All @@ -330,7 +330,7 @@ def patch_site(self):
with io.open(conf_path, "r", encoding="utf-8") as inf:
data = inf.read()
data = data.replace('SITE_URL = "http://getnikola.com/"',
'SITE_URL = "http://getnikola.com/foo/"')
'SITE_URL = "http://demo.getnikola.com/foo/"')
data = data.replace("# URL_TYPE = 'rel_path'",
"URL_TYPE = 'absolute'")
with io.open(conf_path, "w+", encoding="utf8") as outf:
Expand All @@ -341,14 +341,14 @@ def test_index_in_sitemap(self):
"""Test that the correct path is in sitemap, and not the wrong one."""
sitemap_path = os.path.join(self.target_dir, "output", "sitemap.xml")
sitemap_data = io.open(sitemap_path, "r", encoding="utf8").read()
self.assertTrue('<loc>http://getnikola.com/foo/index.html</loc>' in sitemap_data)
self.assertTrue('<loc>http://demo.getnikola.com/foo/index.html</loc>' in sitemap_data)


class TestCheckFullPathSubFolder(TestCheckAbsoluteSubFolder):
"""Validate links in a site which is:
* built in URL_TYPE="full_path"
* deployable to a subfolder (BASE_URL="http://getnikola.com/foo/")
* deployable to a subfolder (BASE_URL="http://demo.getnikola.com/foo/")
"""

@classmethod
Expand All @@ -357,7 +357,7 @@ def patch_site(self):
with io.open(conf_path, "r", encoding="utf-8") as inf:
data = inf.read()
data = data.replace('SITE_URL = "http://getnikola.com/"',
'SITE_URL = "http://getnikola.com/foo/"')
'SITE_URL = "http://demo.getnikola.com/foo/"')
data = data.replace("# URL_TYPE = 'rel_path'",
"URL_TYPE = 'full_path'")
with io.open(conf_path, "w+", encoding="utf8") as outf:
Expand Down

0 comments on commit 72b050a

Please sign in to comment.