Skip to content

Commit

Permalink
#223: Improve assertion on distinct test case
Browse files Browse the repository at this point in the history
  • Loading branch information
MRichards99 committed May 14, 2021
1 parent 0dfa7a3 commit 2623b18
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions test/db/endpoints/test_get_with_filters.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ def test_valid_no_results_get_with_filters(
assert test_response.json == []

@pytest.mark.usefixtures("multiple_investigation_test_data_db")
def test_valid_get_with_filters_distinct(
def test_valid_get_with_filters_multiple_distinct(
self, flask_test_app_db, valid_db_credentials_header,
):
test_response = flask_test_app_db.get(
Expand All @@ -41,8 +41,7 @@ def test_valid_get_with_filters_distinct(
{"title": f"Title for DataGateway API Testing (DB) {i}"} for i in range(5)
]

for title in expected:
assert title in test_response.json
assert test_response.json == expected

def test_limit_skip_merge_get_with_filters(
self,
Expand Down

0 comments on commit 2623b18

Please sign in to comment.