on xenial help sign in
Patch GRID_UNIT_PX as it's used elsewhere too.
0acd7aaChristopher Lee
tests/autopilot/unity8/shell/tests/__init__.py+1
@@ -169,6 +169,7 @@ class UnityTestCase(AutopilotTestCase):
169 else:
169 else:
170 self.grid_size = int(self.grid_unit_px / scale_divisor)
170 self.grid_size = int(self.grid_unit_px / scale_divisor)
171 self._patch_environment("GRID_UNIT_PX", str(self.grid_size))
171 self._patch_environment("GRID_UNIT_PX", str(self.grid_size))
172+ self.patch_environment("GRID_UNIT_PX", str(self.grid_size))
172
173
173 def _geo_larger_than_display(self, width, height):
174 def _geo_larger_than_display(self, width, height):
174 should_scale = getattr(self, 'scale_geo', True)
175 should_scale = getattr(self, 'scale_geo', True)