def test_maybe_update_geometry(completionview, config_stub, qtbot):
 with qtbot.assertNotEmitted(completionview.update_geometry):
  completionview._maybe_update_geometry()
 config_stub.data['completion']['shrink'] = True
 with qtbot.waitSignal(completionview.update_geometry):
  completionview._maybe_update_geometry()

def test_maybe_update_geometry ( completionview , config_stub , qtbot ) : with qtbot . assertNotEmitted ( completionview . update_geometry ) : completionview . _maybe_update_geometry ( ) config_stub . data [ 'completion' ] [ 'shrink' ] = True with qtbot . waitSignal ( completionview . update_geometry ) : completionview . _maybe_update_geometry ( )
ensure completion is resized only if shrink is true .