Skip to content

Commit 989002e

Browse files
committed
Match the comparison tests to the reported values
1 parent cdcdce1 commit 989002e

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

test/unit/tool_form/test_request_comparison.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ def test_repeat_value_mismatch_is_reported():
7272
def test_missing_repeat_instance_is_reported():
7373
declared = {"r": [{"p": "a"}, {"p": "b"}]}
7474
submitted = {"r": [{"p": "a"}]}
75-
assert declared_mismatches(declared, submitted) == ["r (1 values, not 2)"]
75+
assert declared_mismatches(declared, submitted) == ["r ([{'p': 'a'}] not [{'p': 'a'}, {'p': 'b'}])"]
7676

7777

7878
def test_list_of_scalars_matches():
@@ -154,7 +154,7 @@ def test_comma_joined_matches_a_submitted_list():
154154

155155

156156
def test_comma_joined_of_a_different_length_is_reported():
157-
assert declared_mismatches({"c": "1,2,3"}, {"c": [1, 2]}) == ["c (2 values, not 3)"]
157+
assert declared_mismatches({"c": "1,2,3"}, {"c": [1, 2]}) == ["c ([1, 2] not ['1', '2', '3'])"]
158158

159159

160160
def test_text_that_is_not_a_number_still_differs():

0 commit comments

Comments
 (0)