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

Unified Diff: tests/test_multi_source.py

Issue 29891645: Issue 5601 - Speed up static generation (Closed)
Patch Set: Created Sept. 25, 2018, 12:27 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
« cms/sources.py ('K') | « cms/sources.py ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tests/test_multi_source.py
===================================================================
--- a/tests/test_multi_source.py
+++ b/tests/test_multi_source.py
@@ -96,17 +96,17 @@
def test_read_file(multi_source):
assert multi_source.read_file('a') == ('b', 'foo:a')
assert multi_source.read_file('b') == ('b', 'bar:b')
assert multi_source.read_file('c') == ('d', 'foo:c')
def test_read_binary(multi_source):
- assert isinstance(multi_source.read_file('a', binary=True)[0], type(b'b'))
+ assert isinstance(multi_source.read_file('a', True)[0], type(b'b'))
def test_list_files(multi_source):
assert sorted(multi_source.list_files('')) == ['a', 'a/b/c', 'a/d', 'b',
'c']
assert sorted(multi_source.list_files('a')) == ['a/b/c', 'a/d']
assert sorted(multi_source.list_files('a/')) == ['a/b/c', 'a/d']
« cms/sources.py ('K') | « cms/sources.py ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld