Example #1
0
def test_cell_range_repr(excel):
    cell_range = _CellRange(
        ExcelWrapper.RangeData(AddressRange('sheet!A1:B1'), '', ((0, 0), )))
    assert 'sheet!A1:B1' == repr(cell_range)
Example #2
0
def test_init_cell_address_error(excel):
    with pytest.raises(ValueError):
        _CellRange(ExcelWrapper.RangeData(AddressCell('A1'), '', ((0, ), )))
Example #3
0
def test_cell_range_repr(excel):
    cell_range = _CellRange('sheet!A1', excel)
    assert 'sheet!A1' == repr(cell_range)
Example #4
0
def test_init_cell_address_error(excel):
    with pytest.raises(ValueError):
        _CellRange('A1', excel)
Example #5
0
def test_cell_range_repr(excel):
    cell_range = _CellRange(ExcelWrapper.RangeData(
        AddressRange('sheet!A1:B1'), '', ((0, 0),)))
    assert 'sheet!A1:B1' == repr(cell_range)
Example #6
0
def test_init_cell_address_error(excel):
    with pytest.raises(ValueError):
        _CellRange(ExcelWrapper.RangeData(
            AddressCell('A1'), '', ((0, ),)))