mirror of
https://github.com/enzet/map-machine.git
synced 2025-07-31 07:09:52 +02:00
Add more label tests.
This commit is contained in:
parent
8bb43c5c22
commit
330648e034
1 changed files with 13 additions and 0 deletions
|
@ -13,3 +13,16 @@ def test_1_label() -> None:
|
||||||
labels = get_text({"name": "Name"})
|
labels = get_text({"name": "Name"})
|
||||||
assert len(labels) == 1
|
assert len(labels) == 1
|
||||||
assert labels[0].text == "Name"
|
assert labels[0].text == "Name"
|
||||||
|
|
||||||
|
|
||||||
|
def test_1_label_unknown_tags() -> None:
|
||||||
|
labels = get_text({"name": "Name", "aaa": "bbb"})
|
||||||
|
assert len(labels) == 1
|
||||||
|
assert labels[0].text == "Name"
|
||||||
|
|
||||||
|
|
||||||
|
def test_2_labels() -> None:
|
||||||
|
labels = get_text({"name": "Name", "ref": "5"})
|
||||||
|
assert len(labels) == 2
|
||||||
|
assert labels[0].text == "Name"
|
||||||
|
assert labels[1].text == "5"
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue