diff tests/test_templating_jinjaengine.py @ 711:ab5c6a8ae90a

bake: Replace hard-coded taxonomy support with "generator" system. * Taxonomies are now implemented one or more `TaxonomyGenerator`s. * A `BlogArchivesGenerator` stub is there but non-functional.
author Ludovic Chabant <ludovic@chabant.com>
date Thu, 26 May 2016 19:52:47 -0700
parents 55026b7bb1bf
children 72f17534d58e
line wrap: on
line diff
--- a/tests/test_templating_jinjaengine.py	Thu May 26 19:46:28 2016 -0700
+++ b/tests/test_templating_jinjaengine.py	Thu May 26 19:52:47 2016 -0700
@@ -28,7 +28,7 @@
     with mock_fs_scope(fs, open_patches=open_patches):
         app = fs.getApp()
         page = get_simple_page(app, 'foo.md')
-        route = app.getRoute('pages', None)
+        route = app.getSourceRoute('pages', None)
         route_metadata = {'slug': 'foo'}
         output = render_simple_page(page, route, route_metadata)
         assert output == expected
@@ -46,7 +46,7 @@
     with mock_fs_scope(fs, open_patches=open_patches):
         app = fs.getApp()
         page = get_simple_page(app, 'foo.md')
-        route = app.getRoute('pages', None)
+        route = app.getSourceRoute('pages', None)
         route_metadata = {'slug': 'foo'}
         output = render_simple_page(page, route, route_metadata)
         assert output == expected
@@ -63,7 +63,7 @@
     with mock_fs_scope(fs, open_patches=open_patches):
         app = fs.getApp()
         page = get_simple_page(app, 'foo.md')
-        route = app.getRoute('pages', None)
+        route = app.getSourceRoute('pages', None)
         route_metadata = {'slug': 'foo'}
         output = render_simple_page(page, route, route_metadata)
         assert output == expected