Beispiel #1
0
def test_publish_with_retry_settings(topic_publish, capsys):
    publisher.publish_messages_with_retry_settings(PROJECT, TOPIC_PUBLISH)

    out, _ = capsys.readouterr()
    assert "Published" in out
Beispiel #2
0
def test_publish_with_retry_settings(topic, capsys):
    publisher.publish_messages_with_retry_settings(PROJECT, TOPIC)

    out, _ = capsys.readouterr()
    assert 'Published' in out
Beispiel #3
0
def test_publish_with_retry_settings(topic_path: str,
                                     capsys: CaptureFixture) -> None:
    publisher.publish_messages_with_retry_settings(PROJECT_ID, TOPIC_ID)

    out, _ = capsys.readouterr()
    assert f"Published messages with retry settings to {topic_path}." in out