changeset 261:b51ddb0c260b

tests: Fix linker tests.
author Ludovic Chabant <ludovic@chabant.com>
date Tue, 24 Feb 2015 08:04:49 -0800
parents 07b4b8484c0a
children 61145dcd56e0
files tests/test_data_linker.py
diffstat 1 files changed, 4 insertions(+), 2 deletions(-) [+]
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)