Skip to content

Commit f9831e6

Browse files
Add assertions for 'id' and 'event_name' in subscription detail response test
1 parent ad4d546 commit f9831e6

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

api_tests/subscriptions/views/test_subscriptions_detail.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -342,3 +342,5 @@ def test_subscription_detail_patch(
342342
res = app.patch_json_api(url_user_global_file_updated, payload, auth=user.auth)
343343
assert res.status_code == 200
344344
assert res.json['data']['attributes']['frequency'] == 'none'
345+
assert res.json['data'].get('id') is not None
346+
assert res.json['data']['attributes'].get('event_name') is not None

0 commit comments

Comments
 (0)