diff tests/test_data_assetor.py @ 85:3471ffa059b2

Add a `BakeScheduler` to handle build dependencies. Add unit-tests.
author Ludovic Chabant <ludovic@chabant.com>
date Wed, 03 Sep 2014 17:27:50 -0700
parents 485682a6de50
children eb958151c8dc
line wrap: on
line diff
--- a/tests/test_data_assetor.py	Wed Sep 03 17:26:38 2014 -0700
+++ b/tests/test_data_assetor.py	Wed Sep 03 17:27:50 2014 -0700
@@ -20,7 +20,7 @@
 def test_assets(fs, expected):
     with mock_fs_scope(fs):
         page = MagicMock()
-        page.app = fs.getApp()
+        page.app = fs.getApp(cache=False)
         page.app.env.base_asset_url_format = '%uri%'
         page.path = fs.path('/kitchen/pages/foo/bar.md')
         assetor = Assetor(page, '/foo/bar')
@@ -36,7 +36,7 @@
         fs = mock_fs().withPage('pages/foo/bar')
         with mock_fs_scope(fs):
             page = MagicMock()
-            page.app = fs.getApp()
+            page.app = fs.getApp(cache=False)
             page.path = fs.path('/kitchen/pages/foo/bar.md')
             assetor = Assetor(page, '/foo/bar')
             assetor['this_doesnt_exist']
@@ -50,7 +50,7 @@
                 .withPageAsset('pages/foo/bar', 'one.jpg', 'one picture'))
         with mock_fs_scope(fs):
             page = MagicMock()
-            page.app = fs.getApp()
+            page.app = fs.getApp(cache=False)
             page.path = fs.path('/kitchen/pages/foo/bar.md')
             assetor = Assetor(page, '/foo/bar')
             assetor['one']