Mercurial > piecrust2
diff tests/test_sources_base.py @ 36:485682a6de50
New site layout support.
author | Ludovic Chabant <ludovic@chabant.com> |
---|---|
date | Wed, 20 Aug 2014 23:16:51 -0700 |
parents | 4bd840ae75cd |
children | b536022078a2 |
line wrap: on
line diff
--- a/tests/test_sources_base.py Wed Aug 20 21:46:27 2014 -0700 +++ b/tests/test_sources_base.py Wed Aug 20 23:16:51 2014 -0700 @@ -29,7 +29,7 @@ {'url': '/%path%', 'source': 'test'}] } }) - fs.withDir('kitchen/_content/test') + fs.withDir('kitchen/test') with mock_fs_scope(fs): app = PieCrust(fs.path('kitchen'), cache=False) s = app.getSource('test') @@ -42,8 +42,8 @@ @pytest.mark.parametrize('ref_path, expected', [ - ('foo.html', '/kitchen/_content/test/foo.html'), - ('foo/bar.html', '/kitchen/_content/test/foo/bar.html'), + ('foo.html', '/kitchen/test/foo.html'), + ('foo/bar.html', '/kitchen/test/foo/bar.html'), ]) def test_default_source_resolve_ref(ref_path, expected): fs = mock_fs()