Skip to content

Commit

Permalink
update tests
Browse files Browse the repository at this point in the history
  • Loading branch information
Keegan Cordeiro committed Mar 19, 2024
1 parent 88f8779 commit ab22405
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion tests/endpoints/test_schemas.py
Original file line number Diff line number Diff line change
Expand Up @@ -34,9 +34,12 @@ def test_place_schema():


@pytest.mark.parametrize("phq_labels,raise_validation_error", [({"label": 34, "weight": "holiday"}, True), # wrong type
({"label": "holiday", "weight": "holiday"}, True), # wrong type
({"label": 34, "weight": 6}, True), # wrong type
({"weight": 2.0}, True), # missing label
({"label": "holiday"}, True), # missing weight
({"label": "holiday", "weight": 2.0}, False)]) # correct
({"label": "holiday", "weight": 2.0}, False), # correct
({"label": "holiday", "weight": 2}, False)]) # correct
def test_event_schema(phq_labels, raise_validation_error):
if raise_validation_error:
with pytest.raises(ValidationError) as e:
Expand Down

0 comments on commit ab22405

Please sign in to comment.