Skip to content

Instantly share code, notes, and snippets.

@speedupmate
speedupmate / gist:beb69913991bb3752cfd425203ee9449
Created January 25, 2022 09:07 — forked from ProxiBlue/gist:ad1bc6db0f74e4494f92f94d04423b4b
cypress random test from sitemap.xml that old site and new site match data
const X2JS = require('x2js')
describe('Compare Random src and dst products', () => {
const destDomain = 'M1 SITE URL'
beforeEach(() => {
cy.request(destDomain + '/sitemap/sitemap.xml')
.its('body')
.then((body) => {
@speedupmate
speedupmate / flatten_additional_attributes.py
Created March 16, 2021 18:41 — forked from WinstonN/flatten_additional_attributes.py
Flatten additional_attributes from Magento 2 export csv
"""
This script formats a magento product export file, and sets each
additional_attribute as a new column in a target file
"""
import csv
import pandas as pd
# testing files
# source_file = './importexport_605048471de17.csv'
# target_file = './importexport_605048471de177_formatted.csv'