Skip to content

pyoo v1.5.dev and LO7.1 Issues with test.py #12

@LinuksGuru

Description

@LinuksGuru

Hi,

I have run test.py with LO 7.1.4.2 on SuSE Leap and 3 tests out of 185 have failed, with these errors.
Thanks in advance for review and fix.

[code]

ERROR: test_delete_columns_raise (main.SheetTestCase)

Traceback (most recent call last):
File "test.py", line 1096, in test_delete_columns_raise
sheet.delete_columns(1,-1)
File "/usr/lib/python3.6/site-packages/pyoo.py", line 1607, in delete_columns
self._target.Spreadsheet.Columns.removeByIndex(column_index, number_of_columns)
pyoo.com.sun.star.uno.RuntimeException: /home/abuild/rpmbuild/BUILD/libreoffice-7.1.4.2/sc/source/ui/unoobj/docuno.cxx:4008

======================================================================
ERROR: test_delete_rows_raise (main.SheetTestCase)

Traceback (most recent call last):
File "test.py", line 1103, in test_delete_rows_raise
sheet.delete_rows(1,-1)
File "/usr/lib/python3.6/site-packages/pyoo.py", line 1604, in delete_rows
self._target.Spreadsheet.Rows.removeByIndex(row_index, number_of_rows)
pyoo.com.sun.star.uno.RuntimeException: /home/abuild/rpmbuild/BUILD/libreoffice-7.1.4.2/sc/source/ui/unoobj/docuno.cxx:4252

======================================================================
FAIL: test_series_line_color (main.ChartsTestCase)

Traceback (most recent call last):
File "test.py", line 959, in test_series_line_color
"Setting line color of diagram series is sometimes ignored"
AssertionError: 16711680 != 0 : Setting line color of diagram series is sometimes ignored so this test sometimes fails.

======================================================================
FAIL: test_delete_columns_multiple (main.SheetTestCase)

Traceback (most recent call last):
File "test.py", line 1091, in test_delete_columns_multiple
self.assertEqual('Will NOT be deleted', sheet[0, 10].value)
AssertionError: 'Will NOT be deleted' != ''

  • Will NOT be deleted

======================================================================
FAIL: test_delete_rows_multiple (main.SheetTestCase)

Traceback (most recent call last):
File "test.py", line 1079, in test_delete_rows_multiple
self.assertEqual('Will NOT be deleted', sheet[10, 0].value)
AssertionError: 'Will NOT be deleted' != ''

  • Will NOT be deleted

Ran 185 tests in 5.611s

FAILED (failures=3, errors=2)
[/code]

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions