Skip to content

Commit

Permalink
mend
Browse files Browse the repository at this point in the history
  • Loading branch information
joshdimanteto committed Jan 27, 2025
1 parent 17def17 commit dea7f17
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions test/integration/datagateway_api/icat/test_query.py
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand All @@ -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,
Expand Down Expand Up @@ -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,
Expand All @@ -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,
Expand All @@ -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"],
Expand All @@ -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"],
Expand Down

0 comments on commit dea7f17

Please sign in to comment.