Mercurial > piecrust2
diff tests/test_data_linker.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_data_linker.py Sun Mar 06 23:41:35 2016 -0800 +++ b/tests/test_data_linker.py Sun Mar 06 23:48:01 2016 -0800 @@ -37,6 +37,7 @@ ]) def test_linker_iteration(fs_fac, page_path, expected): fs = fs_fac() + fs.withConfig() with mock_fs_scope(fs): app = fs.getApp() app.config.set('site/pretty_urls', True) @@ -83,6 +84,7 @@ ]) def test_recursive_linker_iteration(fs_fac, page_path, expected): fs = fs_fac() + fs.withConfig() with mock_fs_scope(fs): app = fs.getApp() app.config.set('site/pretty_urls', True)