mirror of
https://github.com/enzet/map-machine.git
synced 2025-08-04 00:59:54 +02:00
Issue #89: add test.
This commit is contained in:
parent
2f66e48397
commit
608a6bf95b
1 changed files with 16 additions and 0 deletions
|
@ -132,3 +132,19 @@ def test_no_icon_2_extra() -> None:
|
|||
[("lock_with_keyhole", "#888888")],
|
||||
],
|
||||
)
|
||||
|
||||
|
||||
def test_icon_regex() -> None:
|
||||
"""
|
||||
Tags that should be visualized with default main icon and single extra icon.
|
||||
"""
|
||||
icon = get_icon({"traffic_sign": "maxspeed", "maxspeed": "42"})
|
||||
check_icon_set(
|
||||
icon,
|
||||
[
|
||||
("circle_11", "#444444"),
|
||||
("digit_4", "#FFFFFF"),
|
||||
("digit_2", "#FFFFFF"),
|
||||
],
|
||||
[],
|
||||
)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue