changeset 569:34e57d4b97e2

tests: Fix broken unit test.
author Ludovic Chabant <ludovic@chabant.com>
date Tue, 13 Oct 2015 23:07:56 -0700
parents 6b6c5442c790
children 7dabfdd056a1
files tests/test_baking_baker.py
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/tests/test_baking_baker.py	Tue Oct 13 22:50:38 2015 -0700
+++ b/tests/test_baking_baker.py	Tue Oct 13 23:07:56 2015 -0700
@@ -45,7 +45,7 @@
     for site_root in ['/', '/whatever/', '/~johndoe/']:
         app.config.set('site/root', urllib.parse.quote(site_root))
         baker = PageBaker(app, '/destination')
-        path = baker.getOutputPath(site_root + uri)
+        path = baker.getOutputPath(urllib.parse.quote(site_root) + uri)
         expected = os.path.normpath(
                 os.path.join('/destination', expected))
         assert expected == path