diff --git a/test/integration/datagateway_api/icat/test_query.py b/test/integration/datagateway_api/icat/test_query.py index c32a20d2..5647d488 100644 --- a/test/integration/datagateway_api/icat/test_query.py +++ b/test/integration/datagateway_api/icat/test_query.py @@ -127,7 +127,7 @@ def test_invalid_query_creation(self, icat_client): ", manual_count, return_json_format_flag, expected_query_result", [ pytest.param( - {"title": "like '%Test data for Python ICAT on" " DataGateway API%'",}, + {"title": "like '%Test data for Python ICAT on" " DataGateway API%'"}, None, None, None, @@ -149,7 +149,7 @@ def test_invalid_query_creation(self, icat_client): id="Ordinary query", ), pytest.param( - {"title": "like '%Test data for Python ICAT on" " DataGateway API%'",}, + {"title": "like '%Test data for Python ICAT on" " DataGateway API%'"}, None, ["facility"], None, @@ -179,7 +179,7 @@ def test_invalid_query_creation(self, icat_client): id="Query with included entity", ), pytest.param( - {"title": "like '%Test data for Python ICAT on" " DataGateway API%'",}, + {"title": "like '%Test data for Python ICAT on" " DataGateway API%'"}, "COUNT", None, None, @@ -189,7 +189,7 @@ def test_invalid_query_creation(self, icat_client): id="Count query", ), pytest.param( - {"title": "like '%Test data for Python ICAT on" " DataGateway API%'",}, + {"title": "like '%Test data for Python ICAT on" " DataGateway API%'"}, None, None, None, @@ -211,17 +211,17 @@ def test_invalid_query_creation(self, icat_client): id="Data returned as entity objects", ), pytest.param( - {"title": "like '%Test data for Python ICAT on" " DataGateway API%'",}, + {"title": "like '%Test data for Python ICAT on" " DataGateway API%'"}, "DISTINCT", None, "title", False, True, - [{"title": "Test data for Python ICAT on DataGateway" " API 0",},], + [{"title": "Test data for Python ICAT on DataGateway" " API 0"}], id="Single distinct field", ), pytest.param( - {"title": "like '%Test data for Python ICAT on" " DataGateway API%'",}, + {"title": "like '%Test data for Python ICAT on" " DataGateway API%'"}, "DISTINCT", None, ["title", "name"], @@ -236,7 +236,7 @@ def test_invalid_query_creation(self, icat_client): id="Multiple distinct fields", ), pytest.param( - {"title": "like '%Test data for Python ICAT on" " DataGateway API%'",}, + {"title": "like '%Test data for Python ICAT on" " DataGateway API%'"}, "DISTINCT", None, ["title", "name"],