Skip to content

Commit

Permalink
Added assert statement to comparisons
Browse files Browse the repository at this point in the history
  • Loading branch information
proneon267 authored Nov 5, 2024
1 parent 617c4fe commit da09d05
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions testbed/tests/app/test_desktop.py
Original file line number Diff line number Diff line change
Expand Up @@ -493,12 +493,12 @@ def GetScaleFactorForMonitor_mock(hMonitor, pScale):
for widget in main_window.content.children:
if isinstance(widget, toga.Box):
# Dimension of spacer boxes should decrease when dpi scale increases
getattr(
assert getattr(
get_probe(widget), widget_dimension_to_compare
) < original_widget_dimension[widget]
else:
# Dimension of other widgets should increase when dpi scale increases
getattr(
assert getattr(
get_probe(widget), widget_dimension_to_compare
) > original_widget_dimension[widget]

Expand Down

0 comments on commit da09d05

Please sign in to comment.