mirror of
https://github.com/enzet/map-machine.git
synced 2025-06-15 01:01:54 +02:00
Add scheme test.
This commit is contained in:
parent
699c1e9592
commit
82ecbdef81
1 changed files with 15 additions and 0 deletions
15
tests/test_scheme.py
Normal file
15
tests/test_scheme.py
Normal file
|
@ -0,0 +1,15 @@
|
||||||
|
"""
|
||||||
|
Test scheme parsing.
|
||||||
|
"""
|
||||||
|
from map_machine.scheme import Scheme
|
||||||
|
|
||||||
|
|
||||||
|
def test_verification() -> None:
|
||||||
|
assert (
|
||||||
|
Scheme({"node_icons": [{"tags": {"a": "b"}}]}).node_matchers[0].verify()
|
||||||
|
is True
|
||||||
|
)
|
||||||
|
assert (
|
||||||
|
Scheme({"node_icons": [{"tags": {"a": 0}}]}).node_matchers[0].verify()
|
||||||
|
is False
|
||||||
|
)
|
Loading…
Add table
Add a link
Reference in a new issue