Skip to content

Commit

Permalink
#141: Remove irrelevant ICATQuery test
Browse files Browse the repository at this point in the history
  • Loading branch information
MRichards99 committed Apr 12, 2021
1 parent 9d14566 commit 63c4506
Showing 1 changed file with 0 additions and 25 deletions.
25 changes: 0 additions & 25 deletions test/icat/test_query.py
Original file line number Diff line number Diff line change
Expand Up @@ -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",
[
Expand Down

0 comments on commit 63c4506

Please sign in to comment.