Skip to content

Commit b579e0a

Browse files
committed
WS-3151: change records param in unit test from array to dict.
1 parent 37de35a commit b579e0a

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

tests/test_rosette_api.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -977,7 +977,7 @@ def test_the_record_similarity_endpoint(api, json_response):
977977
params = RecordSimilarityParameters()
978978
params["fields"] = {}
979979
params["properties"] = {}
980-
params["records"] = []
980+
params["records"] = {}
981981
result = api.record_similarity(params)
982982
assert result["name"] == "Rosette"
983983
httpretty.disable()
@@ -1015,9 +1015,9 @@ def test_for_record_similarity_required_parameters(api, json_response):
10151015
assert e_rosette.value.status == 'missingParameter'
10161016
assert e_rosette.value.message == 'Required Record Similarity parameter is missing: records'
10171017

1018-
params["records"] = []
1018+
params["records"] = {}
10191019

10201020
result = api.record_similarity(params)
10211021
assert result["name"] == "Rosette"
10221022
httpretty.disable()
1023-
httpretty.reset()
1023+
httpretty.reset()

0 commit comments

Comments
 (0)