mirror of
https://github.com/aclist/dztui.git
synced 2026-10-31 23:22:44 +01:00
chore: update test to new Details dataclass format
This commit is contained in:
1 parent
18192a4667
commit
95380681f9
1 file changed
+8
-3
@@ -22,9 +22,14 @@ class MockController:
|
|||||||
|
|
||||||
|
|
||||||
def test_html_escaping() -> None:
|
def test_html_escaping() -> None:
|
||||||
text = "<Server description> Game & mods"
|
name = "Test server"
|
||||||
details = Details([["0", "1"]], text, True)
|
desc = "<Server description> Game & mods"
|
||||||
|
gametime = "05:30"
|
||||||
|
day_accel = 5.0
|
||||||
|
night_accel = 1.0
|
||||||
|
details = Details([["0", "1"]], name, desc, gametime, day_accel, night_accel)
|
||||||
controller = MockController()
|
controller = MockController()
|
||||||
dialog = ServerDetailsDialog(controller, details)
|
dialog = ServerDetailsDialog(controller, details)
|
||||||
|
dialog.destroy()
|
||||||
|
|
||||||
assert dialog.description.get_text() == text
|
assert dialog.description.get_text() == desc
|
||||||
Reference in new issue
Block a user