예제 #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
예제 #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
예제 #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