Skip to content

Commit

Permalink
Test button rewrap if taking outside Frame
Browse files Browse the repository at this point in the history
  • Loading branch information
ppizarror committed Dec 23, 2024
1 parent 9fa0330 commit 20ed046
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions test/test_widget_button.py
Original file line number Diff line number Diff line change
Expand Up @@ -346,3 +346,7 @@ def test_multiline(self) -> None:
['required', 'nice a test is', 'important', 'was very', 'amet this', 'dolor sit',
'lorem ipsum', 'required', 'nice a test is', 'important', 'was very'])
self.assertLessEqual(abs(button.get_width() - button._get_max_container_width()), 2)

# Taking button out from Frame must restore its container and reassemble wrap
f1.unpack(button)
self.assertEqual(button.get_overflow_lines(), ['important nice a test is required'])

0 comments on commit 20ed046

Please sign in to comment.