comparison tests/test_sources_base.py @ 242:f130365568ff

internal: Code reorganization to put less stuff in `sources.base`. Interfaces that sources can implement are in `sources.interfaces`. The default page source is in `sources.default`. The `SimplePageSource` is gone since most subclasses only wanted to do *some* stuff the same, but *lots* of stuff slightly different. I may have to revisit the code to extract exactly the code that's in common.
author Ludovic Chabant <ludovic@chabant.com>
date Wed, 18 Feb 2015 18:35:03 -0800
parents 85a6c7ba5e3b
children a2d283d1033d
comparison
equal deleted inserted replaced
241:85a6c7ba5e3b 242:f130365568ff
1 import os 1 import os
2 import pytest 2 import pytest
3 from piecrust.app import PieCrust 3 from piecrust.app import PieCrust
4 from piecrust.sources.base import PageRef, PageNotFoundError 4 from piecrust.sources.pageref import PageRef, PageNotFoundError
5 from .mockutil import mock_fs, mock_fs_scope 5 from .mockutil import mock_fs, mock_fs_scope
6 6
7 7
8 @pytest.mark.parametrize('fs, expected_paths, expected_slugs', [ 8 @pytest.mark.parametrize('fs, expected_paths, expected_slugs', [
9 (mock_fs(), [], []), 9 (mock_fs(), [], []),