Mercurial > piecrust2
diff tests/test_data_linker.py @ 261:b51ddb0c260b
tests: Fix linker tests.
author | Ludovic Chabant <ludovic@chabant.com> |
---|---|
date | Tue, 24 Feb 2015 08:04:49 -0800 |
parents | 879fe1457e48 |
children | 27b10024f8d8 |
line wrap: on
line diff
--- a/tests/test_data_linker.py Mon Feb 23 21:19:20 2015 -0800 +++ b/tests/test_data_linker.py Tue Feb 24 08:04:49 2015 -0800 @@ -37,8 +37,9 @@ def test_linker_iteration(fs, page_path, expected): with mock_fs_scope(fs): app = fs.getApp() + app.config.set('site/pretty_urls', True) src = app.getSource('pages') - linker = Linker(src, page_path=page_path) + linker = Linker(src, page_path) actual = list(iter(linker)) assert len(actual) == len(expected) @@ -80,8 +81,9 @@ def test_recursive_linker_iteration(fs, page_path, expected): with mock_fs_scope(fs): app = fs.getApp() + app.config.set('site/pretty_urls', True) src = app.getSource('pages') - linker = Linker(src, page_path=page_path) + linker = Linker(src, page_path) actual = list(iter(linker.allpages)) assert len(actual) == len(expected)