Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code

Unified Diff: tests/test_additional_paths.py

Issue 29741581: Fixes 6546 - Swap the contents of default.tmpl and empty.tmpl in the test suite (Closed)
Patch Set: Created April 3, 2018, 2:19 p.m.
Use n/p to move between diff chunks; N/P to move between comments.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | tests/test_site/pages/filter.tmpl » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tests/test_additional_paths.py
===================================================================
--- a/tests/test_additional_paths.py
+++ b/tests/test_additional_paths.py
@@ -54,17 +54,17 @@
ap_root = tmpdir_factory.mktemp('ap_site')
ap_root.join('settings.ini').write(
base_root.join('settings.ini').read() +
PATHS_FRAGMENT_TEMPLATE.format(base_root)
)
pages = ap_root.mkdir('pages')
for file_name in ['filter.tmpl', 'global.md', 'translate.tmpl']:
- pages.join(file_name).write('template=empty\n\nMAIN_SITE')
+ pages.join(file_name).write('template=default\n\nMAIN_SITE')
pages.join('map.tmpl').write(base_pages.join('sitemap.tmpl').read())
subprocess.check_call(['hg', 'init', ap_root.strpath])
subprocess.check_call(['hg', '-R', ap_root.strpath,
'commit', '-A', '-m', 'foo'])
return ap_root
« no previous file with comments | « no previous file | tests/test_site/pages/filter.tmpl » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld