on xenial help sign in
Bring back patch_environment for GRID_UNIT_PX.
commitdcbf6080ea18c1778802ea50243b81521d035b6b authorMichał Sawicz <michal.sawicz@canonical.com> dateMon 14 Oct 2013, 21:18 (13 years ago) parenteb83b87
1 file changed+3
tests/autopilot/unity8/shell/tests/__init__.py+3
tests/autopilot/unity8/shell/tests/__init__.py+3
@@ -171,6 +171,9 @@ class UnityTestCase(AutopilotTestCase):
171171 else:
172172 self.grid_size = int(self.grid_unit_px / scale_divisor)
173173 self._environment["GRID_UNIT_PX"] = str(self.grid_size)
174+ # FIXME this is only needed for Hud.get_close_button_coords
175+ # we should probably rework it so that it's not required
176+ self.patch_environment("GRID_UNIT_PX", str(self.grid_size))
174177
175178 def _geo_larger_than_display(self, width, height):
176179 should_scale = getattr(self, 'scale_geo', True)