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: Remove unnecessary template=default metadata and adjust the expected output for sitemap accordingly Created April 3, 2018, 4:34 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
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('MAIN_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

Powered by Google App Engine
This is Rietveld