from unittest.mock import MagicMock


def test_push_magento_collection_landing_logs_taxonomy_path_slug_in_dry_run(caplog):
    from magento.collection_landing_push import push_magento_collection_landing

    caplog.set_level("INFO")

    result = push_magento_collection_landing(
        api=MagicMock(),
        category_id=42,
        collection_row={
            "taxonomy_path_slug": "kitchen-cabinets/eleanor-snow-white",
            "title": "Eleanor Snow White",
        },
        dry_run=True,
    )

    assert result["dry_run"] is True
    assert "path=kitchen-cabinets/eleanor-snow-white" in caplog.text
