Skip to content

Commit

Permalink
Fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
knabar committed Jul 23, 2024
1 parent 1174983 commit 374f20d
Showing 1 changed file with 3 additions and 6 deletions.
9 changes: 3 additions & 6 deletions components/tools/OmeroWeb/test/integration/test_table.py
Original file line number Diff line number Diff line change
Expand Up @@ -262,11 +262,8 @@ def test_table_get_where_list(

@pytest.mark.parametrize("query_result", [
['rows=0-4&columns=0', [[1, 2, 3, 4, 5]], ['Well']],
['rows=0&columns=0,1', [[1], ['test'], [0.5], [135345.0], [2]],
['Well', 'TestColumn']],
['rows=0,1&columns=0-1',
[[1, 2], ['test', 'string'], [0.5, 1.0], [135345.0, 345345.121],
[2, 4]],
['rows=0&columns=0,1', [[1], ['test']], ['Well', 'TestColumn']],
['rows=0,1&columns=0-1', [[1, 2], ['test', 'string']],
['Well', 'TestColumn']],
])
def test_table_perform_slice(
Expand Down Expand Up @@ -303,4 +300,4 @@ def test_table_perform_slice_errors(
request_url = reverse("webgateway_perform_slice",
args=[omero_table_file])
response = get_json(django_client, '%s?%s' % (request_url, query))
assert response.has_key('error') != valid
assert ('error' not in response) == valid

0 comments on commit 374f20d

Please sign in to comment.