From 63c4506989031936794d070f71228ae718d3cd3e Mon Sep 17 00:00:00 2001 From: Matthew Richards Date: Mon, 12 Apr 2021 11:50:17 +0000 Subject: [PATCH] #141: Remove irrelevant ICATQuery test --- test/icat/test_query.py | 25 ------------------------- 1 file changed, 25 deletions(-) diff --git a/test/icat/test_query.py b/test/icat/test_query.py index d154ad7e..64617b38 100644 --- a/test/icat/test_query.py +++ b/test/icat/test_query.py @@ -154,31 +154,6 @@ def test_valid_distinct_attribute_mapping( assert mapped_attributes == expected_output - @pytest.mark.parametrize( - "input_distinct_fields, included_fields", - [ - pytest.param( - ["investigation.id"], - [], - id="Single nested-include distinct attribute, included entity not" - " added", - ), - ], - ) - def test_invalid_distinct_attribute_mapping( - self, icat_client, input_distinct_fields, included_fields, - ): - """ - Test that when the appropriate included fields are not present, a `FilterError` - will be raised - """ - test_query = ICATQuery(icat_client, "Datafile") - - with pytest.raises(FilterError): - test_query.map_distinct_attributes_to_entity_names( - input_distinct_fields, included_fields, - ) - @pytest.mark.parametrize( "included_entity_name, input_fields, expected_fields", [