Skip to content

Commit

Permalink
Add asserts for created and retrieved subscriptions with data sets
Browse files Browse the repository at this point in the history
  • Loading branch information
sighol committed Nov 21, 2023
1 parent 93a93c5 commit b245f19
Showing 1 changed file with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -100,6 +100,9 @@ def test_create_retrieve_delete_subscription(
assert created.last_updated_time
assert created.time_series_count == len(new_subscription.time_series_ids)
assert retrieved_subscription.external_id == new_subscription.external_id == created.external_id
assert retrieved_subscription.name == new_subscription.name == created.name
assert retrieved_subscription.description == new_subscription.description == created.description
assert retrieved_subscription.data_set_id == new_subscription.data_set_id == created.data_set_id

time_series_in_subscription = cognite_client.time_series.subscriptions.list_member_time_series(
new_subscription.external_id, limit=10
Expand Down

0 comments on commit b245f19

Please sign in to comment.