| Index: tests/test_page_outputs.py | 
| =================================================================== | 
| --- a/tests/test_page_outputs.py | 
| +++ b/tests/test_page_outputs.py | 
| @@ -26,23 +26,22 @@ | 
| del outputs[filename] | 
| return outputs.items() | 
| static_expected_outputs = get_expected_outputs('static') | 
| dynamic_expected_outputs = get_expected_outputs('dynamic') | 
| -@mock.patch('cms.sources.FileSource.version', 1) | 
| @pytest.fixture(scope='session') | 
| def static_output(request, temp_site): | 
| static_out_path = os.path.join(temp_site, 'static_out') | 
| sys.argv = ['filler', temp_site, static_out_path] | 
| - | 
| - runpy.run_module('cms.bin.generate_static_pages', run_name='__main__') | 
| + with mock.patch('cms.sources.FileSource.version', 1): | 
| + runpy.run_module('cms.bin.generate_static_pages', run_name='__main__') | 
| return static_out_path | 
| @pytest.fixture(scope='module') | 
| def dynamic_server(temp_site): | 
| with run_test_server(temp_site) as ts: | 
| yield ts |