Skip to content

Commit

Permalink
add test todo
Browse files Browse the repository at this point in the history
  • Loading branch information
sh-rp committed Jan 12, 2024
1 parent f609fc8 commit 97d06ed
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions tests/common/schema/test_coercion.py
Original file line number Diff line number Diff line change
Expand Up @@ -377,6 +377,8 @@ def test_coerce_type_complex() -> None:
assert coerce_value("complex", "complex", v_list) == v_list
assert coerce_value("text", "complex", v_dict) == json.dumps(v_dict)
assert coerce_value("text", "complex", v_list) == json.dumps(v_list)
# TODO: add coercion tests for text to complex

# all other coercions fail
with pytest.raises(ValueError):
coerce_value("binary", "complex", v_list)
Expand Down

0 comments on commit 97d06ed

Please sign in to comment.