comparison tests/test_sources_base.py @ 241:85a6c7ba5e3b

tests: Fix tests for base sources.
author Ludovic Chabant <ludovic@chabant.com>
date Mon, 16 Feb 2015 08:25:08 -0800
parents 8d16ca75075f
children f130365568ff
comparison
equal deleted inserted replaced
240:c1d4e86a3918 241:85a6c7ba5e3b
34 app = PieCrust(fs.path('kitchen'), cache=False) 34 app = PieCrust(fs.path('kitchen'), cache=False)
35 s = app.getSource('test') 35 s = app.getSource('test')
36 facs = list(s.buildPageFactories()) 36 facs = list(s.buildPageFactories())
37 paths = [f.rel_path for f in facs] 37 paths = [f.rel_path for f in facs]
38 assert paths == expected_paths 38 assert paths == expected_paths
39 slugs = [f.metadata['path'] for f in facs] 39 slugs = [f.metadata['slug'] for f in facs]
40 assert slugs == expected_slugs 40 assert slugs == expected_slugs
41 41
42 42
43 43
44 @pytest.mark.parametrize('ref_path, expected', [ 44 @pytest.mark.parametrize('ref_path, expected', [