aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--tests/options_tests.py9
1 files changed, 9 insertions, 0 deletions
diff --git a/tests/options_tests.py b/tests/options_tests.py
index 12c1af8..72c75bf 100644
--- a/tests/options_tests.py
+++ b/tests/options_tests.py
@@ -25,3 +25,12 @@ def default_style_mappings_are_ignored_if_include_default_style_map_is_false():
"include_default_style_map": False
})["style_map"]
assert_equal([style_reader.read_style("p.SectionTitle => h2")], style_map)
+
+
+@istest
+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)