diff tests/test_serving.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 64e696adb99e
children ab5c6a8ae90a
line wrap: on
line diff
--- a/tests/test_serving.py	Sun Mar 06 23:41:35 2016 -0800
+++ b/tests/test_serving.py	Sun Mar 06 23:48:01 2016 -0800
@@ -65,6 +65,7 @@
         return c
 
     fs = (mock_fs()
+          .withConfig()
           .withPages(8, 'posts/2015-03-{idx1:02}_post{idx1:02}.md',
                      config_factory)
           .withPage('pages/_tag.md', {'layout': 'none', 'format': 'none'},
@@ -108,6 +109,7 @@
         return c
 
     fs = (mock_fs()
+          .withConfig()
           .withPages(6, 'posts/2015-03-{idx1:02}_post{idx1:02}.md',
                      config_factory)
           .withPage('pages/_category.md', {'layout': 'none', 'format': 'none'},