Mercurial > piecrust2
comparison tests/test_baking_baker.py @ 11:617191dec18e
Fixes for Windows, make `findPagePath` return a ref path.
author | Ludovic Chabant <ludovic@chabant.com> |
---|---|
date | Mon, 18 Aug 2014 16:47:44 -0700 |
parents | f5ca5c5bed85 |
children | 7e44f6092a1d |
comparison
equal
deleted
inserted
replaced
10:cd35d356ccce | 11:617191dec18e |
---|---|
1 import os.path | |
1 import pytest | 2 import pytest |
2 from piecrust.baking.baker import PageBaker | 3 from piecrust.baking.baker import PageBaker |
3 from .mockutil import get_mock_app | 4 from .mockutil import get_mock_app |
4 | 5 |
5 | 6 |
34 assert app.config.get('site/pretty_urls') == pretty | 35 assert app.config.get('site/pretty_urls') == pretty |
35 | 36 |
36 baker = PageBaker(app, '/destination') | 37 baker = PageBaker(app, '/destination') |
37 sub_uri = baker.getOutputUri(uri, page_num) | 38 sub_uri = baker.getOutputUri(uri, page_num) |
38 path = baker.getOutputPath(sub_uri) | 39 path = baker.getOutputPath(sub_uri) |
39 expected = '/destination/' + expected | 40 expected = os.path.normpath( |
41 os.path.join('/destination', expected)) | |
40 assert expected == path | 42 assert expected == path |
41 | 43 |