mirror of
https://github.com/enzet/map-machine.git
synced 2025-05-28 16:36:27 +02:00
Issue #103: fix rendering test.
This commit is contained in:
parent
34f642b713
commit
9a1130c3a6
1 changed files with 4 additions and 4 deletions
|
@ -57,8 +57,8 @@ def test_render() -> None:
|
||||||
root: Element = ElementTree.parse(output_file).getroot()
|
root: Element = ElementTree.parse(output_file).getroot()
|
||||||
|
|
||||||
# 4 expected elements: `defs`, `rect` (background), `g` (outline),
|
# 4 expected elements: `defs`, `rect` (background), `g` (outline),
|
||||||
# `g` (icon).
|
# `g` (icon), 4 `text` elements (credits).
|
||||||
assert len(root) == 4
|
assert len(root) == 8
|
||||||
assert len(root[3][0]) == 0
|
assert len(root[3][0]) == 0
|
||||||
assert root.get("width") == "186.0"
|
assert root.get("width") == "186.0"
|
||||||
assert root.get("height") == "198.0"
|
assert root.get("height") == "198.0"
|
||||||
|
@ -74,8 +74,8 @@ def test_render_with_tooltips() -> None:
|
||||||
root: Element = ElementTree.parse(output_file).getroot()
|
root: Element = ElementTree.parse(output_file).getroot()
|
||||||
|
|
||||||
# 4 expected elements: `defs`, `rect` (background), `g` (outline),
|
# 4 expected elements: `defs`, `rect` (background), `g` (outline),
|
||||||
# `g` (icon).
|
# `g` (icon), 4 `text` elements (credits).
|
||||||
assert len(root) == 4
|
assert len(root) == 8
|
||||||
assert len(root[3][0]) == 1
|
assert len(root[3][0]) == 1
|
||||||
assert root[3][0][0].text == "natural: tree"
|
assert root[3][0][0].text == "natural: tree"
|
||||||
assert root.get("width") == "186.0"
|
assert root.get("width") == "186.0"
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue