コード例 #1
0
def test_publish(topic, capsys):
    publisher.publish_messages(PROJECT, TOPIC)

    out, _ = capsys.readouterr()
    assert 'Published' in out
コード例 #2
0
def test_publish(topic, capsys):
    publisher.publish_messages(PROJECT, TOPIC)

    out, _ = capsys.readouterr()
    assert 'Published' in out
コード例 #3
0
def test_publish(topic_path: str, capsys: CaptureFixture) -> None:
    publisher.publish_messages(PROJECT_ID, TOPIC_ID)

    out, _ = capsys.readouterr()
    assert f"Published messages to {topic_path}." in out
コード例 #4
0
def test_publish(topic_publish, capsys):
    publisher.publish_messages(PROJECT, TOPIC_PUBLISH)

    out, _ = capsys.readouterr()
    assert "Published" in out
コード例 #5
0
def test_publish(topic_path, capsys):
    publisher.publish_messages(PROJECT_ID, TOPIC_ID)

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