def shape_offset_y_fixture(self, request): start_y, ys, expected_value = request.param drawing_ops = [] for y in ys: if y is None: drawing_ops.append(_Close()) else: drawing_ops.append(_BaseDrawingOperation(None, None, y)) builder = FreeformBuilder(None, None, start_y, None, None) builder._drawing_operations.extend(drawing_ops) return builder, expected_value
def dx_fixture(self, request): start_x, xs, expected_value = request.param drawing_ops = [] for x in xs: if x is None: drawing_ops.append(_Close()) else: drawing_ops.append(_BaseDrawingOperation(None, x, None)) builder = FreeformBuilder(None, start_x, None, None, None) builder._drawing_operations.extend(drawing_ops) return builder, expected_value
def apply_fixture(self): path = element("a:path") close = _Close() expected_xml = xml("a:path/a:close") return close, path, expected_xml
def apply_fixture(self): path = element('a:path') close = _Close() expected_xml = xml('a:path/a:close') return close, path, expected_xml