def test_remove_dead_letter_policy(subscription_dlq, capsys):
    subscription_after_update = subscriber.remove_dead_letter_policy(
        PROJECT_ID, TOPIC, SUBSCRIPTION_DLQ)

    out, _ = capsys.readouterr()
    assert subscription_dlq in out
    assert subscription_after_update.dead_letter_policy.dead_letter_topic == ""
Exemplo n.º 2
0
def test_remove_dead_letter_policy(subscriber_client, subscription_dlq):
    subscription_after_update = subscriber.remove_dead_letter_policy(
        PROJECT, TOPIC, SUBSCRIPTION_DLQ)

    assert subscription_after_update.dead_letter_policy.dead_letter_topic == ""