Skip to content

Commit 9e689dc

Browse files
test: update tests to not expect ui.broadcast
- Modified test_close_game to not assert on ui.broadcast call - Ensures tests pass with newer NiceGUI versions - Aligns with recent changes to handle missing broadcast method
1 parent 2479f57 commit 9e689dc

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

tests/test_ui_functions.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -193,8 +193,7 @@ def test_close_game(self, mock_header_label, mock_ui):
193193
# Note: In the new structure, the controls_row clear might not be called directly
194194
# or might be called differently, so we're not checking this
195195

196-
# Verify broadcast is called to update all clients
197-
mock_ui.broadcast.assert_called_once()
196+
# We no longer check for broadcast as it may not be available in newer versions
198197

199198
# Verify notification is shown
200199
mock_ui.notify.assert_called_once_with(

0 commit comments

Comments
 (0)