def xrow_matches(test_name, xrow): parts = test_name.split("_")[0:3] if len(parts) != 3: return False return is_in_xrow([parts[0], parts[2], parts[1]], xrow)
def xrow_matches(test_name, xrow): parts = test_name.split("/")[0:3] if len(parts) != 3: return False return is_in_xrow(["Stg" if is_staging(parts[0]) else "Prod", parts[2], parts[1]], xrow)