diff options
| author | Michael Williamson <mike@zwobble.org> | 2015-08-15 18:11:46 +0100 |
|---|---|---|
| committer | Michael Williamson <mike@zwobble.org> | 2015-08-15 18:11:46 +0100 |
| commit | 2c9955f0590d93968b4959e3622d01610e398700 (patch) | |
| tree | 886f42a3c647d8f0716a871685e925b95bd2bc6f /tests/options_tests.py | |
| parent | 724f9f01d83865ae586e7a8f65545e1a11d2cdae (diff) | |
Continue with warning style mapping cannot be parsed
Diffstat (limited to 'tests/options_tests.py')
| -rw-r--r-- | tests/options_tests.py | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/tests/options_tests.py b/tests/options_tests.py index 72c75bf..f0b0beb 100644 --- a/tests/options_tests.py +++ b/tests/options_tests.py @@ -6,15 +6,15 @@ from mammoth.options import read_options, _default_style_map @istest def default_style_map_is_used_if_style_map_is_not_set(): - assert_equal(_default_style_map, read_options({})["style_map"]) + assert_equal(_default_style_map, read_options({}).value["style_map"]) @istest def custom_style_mappings_are_prepended_to_default_style_mappings(): style_map = read_options({ "style_map": "p.SectionTitle => h2" - })["style_map"] - assert_equal(style_reader.read_style("p.SectionTitle => h2"), style_map[0]) + }).value["style_map"] + assert_equal(style_reader.read_style("p.SectionTitle => h2").value, style_map[0]) assert_equal(_default_style_map, style_map[1:]) @@ -23,8 +23,8 @@ 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) + }).value["style_map"] + assert_equal([style_reader.read_style("p.SectionTitle => h2").value], style_map) @istest @@ -32,5 +32,5 @@ def lines_starting_with_hash_in_custom_style_map_are_ignored(): style_map = read_options({ "style_map": "#p.SectionTitle => h3\np.SectionTitle => h2", "include_default_style_map": False - })["style_map"] - assert_equal([style_reader.read_style("p.SectionTitle => h2")], style_map) + }).value["style_map"] + assert_equal([style_reader.read_style("p.SectionTitle => h2").value], style_map) |
