Skip to content

Commit 68aa5a9

Browse files
better invalid status test
1 parent ba27fda commit 68aa5a9

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

tests/test_events.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,8 +78,9 @@ def test_event_rsvp_with_comment(mocked_responses, api_client):
7878
@pytest.mark.usefixtures("mock_events")
7979
def test_event_rsvp_invalid(api_client):
8080
event = api_client.events.first()
81-
with pytest.raises(ValueError):
81+
with pytest.raises(ValueError) as excinfo:
8282
event.rsvp("purple")
83+
assert "invalid status" in str(excinfo)
8384

8485

8586
@pytest.mark.usefixtures("mock_events")

0 commit comments

Comments
 (0)