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