Fix scheme test.

This commit is contained in:
Sergey Vartanov 2021-12-05 15:33:22 +03:00
parent 73afd6913b
commit fd39961fc7

View file

@ -6,10 +6,14 @@ from map_machine.scheme import Scheme
def test_verification() -> None:
assert (
Scheme({"node_icons": [{"tags": {"a": "b"}}]}).node_matchers[0].verify()
Scheme({"node_icons": [{"tags": [{"tags": {"a": "b"}}]}]})
.node_matchers[0]
.verify()
is True
)
assert (
Scheme({"node_icons": [{"tags": {"a": 0}}]}).node_matchers[0].verify()
Scheme({"node_icons": [{"tags": [{"tags": {"a": 0}}]}]})
.node_matchers[0]
.verify()
is False
)