mirror of
https://github.com/enzet/map-machine.git
synced 2025-06-14 00:31:52 +02:00
Fix scheme test.
This commit is contained in:
parent
73afd6913b
commit
fd39961fc7
1 changed files with 6 additions and 2 deletions
|
@ -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
|
||||
)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue