Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Extend test coverage for tables slice, read and readCoordinates API #6412

Open
wants to merge 4 commits into
base: develop
Choose a base branch
from

Conversation

sbesson
Copy link
Member

@sbesson sbesson commented Sep 18, 2024

See #6411 (comment) for the initial motivation.

The contract around the handling of empty inputs in the omero.tables.slice API is currently solely documented in the slice
generated API documentation - see https://docs.openmicroscopy.org/omero-blitz/5.7.3/slice2html/omero/grid/Table.html#slice.
This PR expands the table integration tests to check different scenarios including:

  • empty input in tables.slice
  • invalid inputs for the tables.slice, tables.read and tables.readCoordinates
  • return order for tables.slice

The new tests are expected to pass with the current version of OMERO.py. As part of this, I have identified an issue when start/stop are outside the rows range in table.read() which I will address separetely.

- add test case for the special handling of empty inputs in table.slice
- add various test cases for invalid inputs in the table reading API
@sbesson
Copy link
Member Author

sbesson commented Sep 19, 2024

Added a few tests around the the expectations of the table.read() and table.readCoordinates API. This highlighted a bug in OMERO.py when using some start/end values and a corresponding fix has been opened as ome/omero-py#430.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants