示例#1
0
def test_publish_with_custom_attributes(topic, capsys):
    publisher.publish_messages_with_custom_attributes(PROJECT, TOPIC)

    out, _ = capsys.readouterr()
    assert 'Published' in out
示例#2
0
def test_publish_with_custom_attributes(topic_path: str,
                                        capsys: CaptureFixture) -> None:
    publisher.publish_messages_with_custom_attributes(PROJECT_ID, TOPIC_ID)

    out, _ = capsys.readouterr()
    assert f"Published messages with custom attributes to {topic_path}." in out
示例#3
0
def test_publish_with_custom_attributes(topic_publish, capsys):
    publisher.publish_messages_with_custom_attributes(PROJECT, TOPIC_PUBLISH)

    out, _ = capsys.readouterr()
    assert "Published" in out
def test_publish_with_custom_attributes(topic, capsys):
    publisher.publish_messages_with_custom_attributes(PROJECT, TOPIC)

    out, _ = capsys.readouterr()
    assert 'Published' in out