def test_delete(subscriber_client, subscription): subscriber.delete_subscription(PROJECT, SUBSCRIPTION) @eventually_consistent.call def _(): with pytest.raises(Exception): subscriber_client.get_subscription(subscription)
def test_delete(subscriber_client, subscription_admin): subscriber.delete_subscription(PROJECT, SUBSCRIPTION_ADMIN) @backoff.on_exception(backoff.expo, AssertionError, max_time=60) def eventually_consistent_test(): with pytest.raises(Exception): subscriber_client.get_subscription(subscription_admin) eventually_consistent_test()
def test_delete(test_subscription): test_subscription.create() subscriber.delete_subscription(test_subscription.topic.name, test_subscription.name) @eventually_consistent.call def _(): assert not test_subscription.exists()
def test_delete(test_subscription): test_subscription.create() subscriber.delete_subscription( test_subscription.topic.name, test_subscription.name) @eventually_consistent.call def _(): assert not test_subscription.exists()