def test_cell_range_repr(excel): cell_range = _CellRange( ExcelWrapper.RangeData(AddressRange('sheet!A1:B1'), '', ((0, 0), ))) assert 'sheet!A1:B1' == repr(cell_range)
def test_init_cell_address_error(excel): with pytest.raises(ValueError): _CellRange(ExcelWrapper.RangeData(AddressCell('A1'), '', ((0, ), )))
def test_cell_range_repr(excel): cell_range = _CellRange('sheet!A1', excel) assert 'sheet!A1' == repr(cell_range)
def test_init_cell_address_error(excel): with pytest.raises(ValueError): _CellRange('A1', excel)
def test_cell_range_repr(excel): cell_range = _CellRange(ExcelWrapper.RangeData( AddressRange('sheet!A1:B1'), '', ((0, 0),))) assert 'sheet!A1:B1' == repr(cell_range)
def test_init_cell_address_error(excel): with pytest.raises(ValueError): _CellRange(ExcelWrapper.RangeData( AddressCell('A1'), '', ((0, ),)))