def test_publish_with_batch_settings(topic, capsys): publisher.publish_messages_with_batch_settings(PROJECT, TOPIC) out, _ = capsys.readouterr() assert 'Published' in out
def test_publish_with_batch_settings(topic_publish, capsys): publisher.publish_messages_with_batch_settings(PROJECT, TOPIC_PUBLISH) out, _ = capsys.readouterr() assert "Published" in out
def test_publish_with_batch_settings(topic_path: str, capsys: CaptureFixture) -> None: publisher.publish_messages_with_batch_settings(PROJECT_ID, TOPIC_ID) out, _ = capsys.readouterr() assert f"Published messages with batch settings to {topic_path}." in out