mirror of
https://github.com/aclist/dztui.git
synced 2026-10-25 12:12:31 +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:
|
||||
text = "<Server description> Game & mods"
|
||||
details = Details([["0", "1"]], text, True)
|
||||
name = "Test server"
|
||||
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()
|
||||
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