Mercurial > piecrust2
diff tests/test_sources_base.py @ 674:f987b29d6fab
tests: Add ability to run tests with a theme site.
* Remove automatic creating of `config.yml`.
* Add option to specify `theme_config` in YAML tests.
author | Ludovic Chabant <ludovic@chabant.com> |
---|---|
date | Sun, 06 Mar 2016 23:48:01 -0800 |
parents | e7b865f8f335 |
children | 72f17534d58e |
line wrap: on
line diff
--- a/tests/test_sources_base.py Sun Mar 06 23:41:35 2016 -0800 +++ b/tests/test_sources_base.py Sun Mar 06 23:48:01 2016 -0800 @@ -127,7 +127,7 @@ def test_page_ref_with_missing_source(): - fs = mock_fs() + fs = mock_fs().withConfig() with mock_fs_scope(fs): app = fs.getApp() r = PageRef(app, 'whatever:doesnt_exist.md') @@ -136,7 +136,7 @@ def test_page_ref_with_missing_file(): - fs = mock_fs() + fs = mock_fs().withConfig() with mock_fs_scope(fs): app = fs.getApp() r = PageRef(app, 'pages:doesnt_exist.%ext%')