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

Unified Diff: tests/test_page_outputs.py

Issue 29472555: Issue 4867 - Add global get_pages_metadata to template converters (Closed)
Patch Set: Created June 23, 2017, 9:54 a.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_page_outputs.py
===================================================================
--- a/tests/test_page_outputs.py
+++ b/tests/test_page_outputs.py
@@ -65,13 +65,14 @@
@pytest.mark.parametrize('filename,expected_output', expected_outputs)
def test_dynamic(dynamic_server, filename, expected_output):
response = urllib2.urlopen(dynamic_server + filename)
assert response.read() == expected_output
-def test_revision_arg(revision, output_pages):
+def test_revision_arg(revision, temp_site):
Vasily Kuznetsov 2017/06/23 14:15:24 Is this test related to `get_pages_metadata` globa
Jon Sonesen 2017/06/26 07:22:43 Yeah, so I actually shouldn't have changed this. D
+ exists = os.path.isfile(os.path.join(temp_site, 'templates', 'bar.md'))
if revision is None:
- assert 'bar' in output_pages
- else:
- assert 'bar' not in output_pages
+ assert exists
+ elif revision is 'test':
+ assert not exists

Powered by Google App Engine
This is Rietveld