Mercurial > piecrust2
diff tests/test_data_assetor.py @ 36:485682a6de50
New site layout support.
author | Ludovic Chabant <ludovic@chabant.com> |
---|---|
date | Wed, 20 Aug 2014 23:16:51 -0700 |
parents | 62c7a97c8340 |
children | 3471ffa059b2 |
line wrap: on
line diff
--- a/tests/test_data_assetor.py Wed Aug 20 21:46:27 2014 -0700 +++ b/tests/test_data_assetor.py Wed Aug 20 23:16:51 2014 -0700 @@ -22,7 +22,7 @@ page = MagicMock() page.app = fs.getApp() page.app.env.base_asset_url_format = '%uri%' - page.path = fs.path('/kitchen/_content/pages/foo/bar.md') + page.path = fs.path('/kitchen/pages/foo/bar.md') assetor = Assetor(page, '/foo/bar') for en in expected.keys(): assert hasattr(assetor, en) @@ -37,7 +37,7 @@ with mock_fs_scope(fs): page = MagicMock() page.app = fs.getApp() - page.path = fs.path('/kitchen/_content/pages/foo/bar.md') + page.path = fs.path('/kitchen/pages/foo/bar.md') assetor = Assetor(page, '/foo/bar') assetor['this_doesnt_exist'] @@ -51,7 +51,7 @@ with mock_fs_scope(fs): page = MagicMock() page.app = fs.getApp() - page.path = fs.path('/kitchen/_content/pages/foo/bar.md') + page.path = fs.path('/kitchen/pages/foo/bar.md') assetor = Assetor(page, '/foo/bar') assetor['one']