Refactor verification test.

This commit is contained in:
Sergey Vartanov 2022-08-19 10:57:27 +03:00
parent cdbcedc6ec
commit 2d86ff3b0d

View file

@ -4,7 +4,7 @@ from typing import Any
from map_machine.scheme import Scheme
def test_verification() -> None:
def test_verification_right() -> None:
"""Test verification process of tags in scheme."""
tags: dict[str, Any] = {
@ -13,7 +13,9 @@ def test_verification() -> None:
}
assert Scheme(tags).node_matchers[0].verify() is True
# Tag value should be string, not integer.
def test_verification_wrong() -> None:
"""Tag value should be string, not integer."""
tags: dict[str, Any] = {
"colors": {"default": "#444444"},