Esempio n. 1
0
def test_publish(topic, capsys):
    publisher.publish_messages(PROJECT, TOPIC)

    out, _ = capsys.readouterr()
    assert 'Published' in out
def test_publish(topic, capsys):
    publisher.publish_messages(PROJECT, TOPIC)

    out, _ = capsys.readouterr()
    assert 'Published' in out
Esempio n. 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
Esempio n. 4
0
def test_publish(topic_publish, capsys):
    publisher.publish_messages(PROJECT, TOPIC_PUBLISH)

    out, _ = capsys.readouterr()
    assert "Published" in out
Esempio n. 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