From 374f20d2bf33f35f4888e4149a794f3c4d55ccef Mon Sep 17 00:00:00 2001 From: Andreas Knab Date: Tue, 23 Jul 2024 16:44:43 +0200 Subject: [PATCH] Fix tests --- components/tools/OmeroWeb/test/integration/test_table.py | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/components/tools/OmeroWeb/test/integration/test_table.py b/components/tools/OmeroWeb/test/integration/test_table.py index 4ebaf22011e..2bc42d052dc 100644 --- a/components/tools/OmeroWeb/test/integration/test_table.py +++ b/components/tools/OmeroWeb/test/integration/test_table.py @@ -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( @@ -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