diff options
| author | Michael Williamson <mike@zwobble.org> | 2014-01-07 22:58:14 +0000 |
|---|---|---|
| committer | Michael Williamson <mike@zwobble.org> | 2014-01-07 22:58:14 +0000 |
| commit | 1db3243ef38743f86b0940bd227a62c49598b740 (patch) | |
| tree | 142cf3b3bf748c586d420cf1c2b0379a3173e1b4 /tests | |
| parent | 86e37ffa1500a444b59d9ae951f4bfa0bff69caf (diff) | |
Allow default style map to be disabled
Diffstat (limited to 'tests')
| -rw-r--r-- | tests/options_tests.py | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/tests/options_tests.py b/tests/options_tests.py index c646b12..12c1af8 100644 --- a/tests/options_tests.py +++ b/tests/options_tests.py @@ -16,3 +16,12 @@ def custom_style_mappings_are_prepended_to_default_style_mappings(): })["style_map"] assert_equal(style_reader.read_style("p.SectionTitle => h2"), style_map[0]) assert_equal(_default_style_map, style_map[1:]) + + +@istest +def default_style_mappings_are_ignored_if_include_default_style_map_is_false(): + style_map = read_options({ + "style_map": "p.SectionTitle => h2", + "include_default_style_map": False + })["style_map"] + assert_equal([style_reader.read_style("p.SectionTitle => h2")], style_map) |
