# HG changeset patch # User Ludovic Chabant # Date 1424793889 28800 # Node ID b51ddb0c260b0ed9aed2721c51483f2b622c2300 # Parent 07b4b8484c0a38b40d1213469e1bc4a594565dd3 tests: Fix linker tests. diff -r 07b4b8484c0a -r b51ddb0c260b tests/test_data_linker.py --- 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)