ver Jan21stv2

fixed bugs
updated parts of configs
This commit is contained in:
David Chang
2024-01-21 23:55:04 +08:00
parent 4514c32269
commit 552491f765
7 changed files with 104 additions and 139 deletions

View File

@@ -63,7 +63,7 @@
"command": [
"libreoffice",
"--convert-to",
"csv:Text - txt - csv (StarCalc):44,34,UTF-8,,,,false,true,true",
"csv:Text - txt - csv (StarCalc):44,34,UTF-8,,,,false,true,true,false,false,1",
"--outdir",
"/home/user",
"/home/user/Customers_New_7digit_Id.xlsx"
@@ -76,11 +76,11 @@
"type": "vm_file",
"path": [
"/home/user/Customers_New_7digit_Id.xlsx",
"/home/user/Customers_New_7digit_Id.csv"
"/home/user/Customers_New_7digit_Id-Sheet1.csv"
],
"dest": [
"Customers_New_7digit_Id.xlsx",
"Customers_New_7digit_Id.csv"
"Customers_New_7digit_Id-Sheet1.csv"
],
"multi": true
},
@@ -92,12 +92,18 @@
],
"dest": [
"Customers_New_7digit_Id_gold.xlsx",
"Customers_New_7digit_Id_gold.csv"
"Customers_New_7digit_Id_gold-Sheet1.csv"
],
"multi": true
},
"options": {
"as_shown": true
"rules": [
{
"type": "sheet_print",
"sheet_idx0": 0,
"sheet_idx1": "EI0"
}
]
}
}
}

View File

@@ -1,7 +1,7 @@
{
"id": "0cecd4f3-74de-457b-ba94-29ad6b5dafb6",
"snapshot": "libreoffice_calc",
"instruction": "Copy sheet1 and insert it before sheet2",
"instruction": "Copy Sheet1 and insert it before Sheet2 and rename it as Sheet1.bak",
"source": "https://www.libreofficehelp.com/add-insert-delete-copy-move-rename-a-worksheet-in-libreoffice-calc/",
"config": [
{
@@ -52,19 +52,21 @@
}
}
],
"func": "check_sheet_list",
"func": "compare_table",
"result": {
"type": "vm_file",
"path": "/home/user/copy_sheet_insert.xlsx",
"dest": "copy_sheet_insert.xlsx"
},
"expected": {
"type": "rule",
"type": "cloud_file",
"path": "https://drive.usercontent.google.com/download?id=15SjZNQtdt55SW6FIpi2JmWmVOpoZGjEB&export=download&authuser=0&confirm=t&uuid=182ac3dc-e0e9-4d30-b800-b842d5fcd665&at=APZUnTXVlvE4vv1-QO7HKqQOrikJ:1705850636082",
"dest": "copy_sheet_insert_gold.xlsx"
},
"options": {
"rules": [
{
"type": "sheet_name",
"sheet_idx": 0,
"sheet_name": "Sheet1"
"type": "sheet_name"
},
{
"type": "sheet_data",
@@ -72,9 +74,9 @@
"sheet_idx1": 1
},
{
"type": "sheet_name",
"sheet_idx": 2,
"sheet_name": "Sheet2"
"type": "sheet_data",
"sheet_idx0": 1,
"sheet_idx1": "EI1"
}
]
}

View File

@@ -52,18 +52,31 @@
}
}
],
"func": "check_xlsx_zoom",
"func": "compare_table",
"result": {
"type": "vm_file",
"path": "/home/user/Zoom_Out_Oversized_Cells.xlsx",
"dest": "Zoom_Out_Oversized_Cells.xlsx"
},
"expected": {
"type": "rule",
"rules": {
"relation": "lt",
"ref_value": 260
}
"type": "cloud_file",
"path": "https://drive.usercontent.google.com/download?id=1sX_roln3dNbXat0umlAIwZrW2eBmLkLE&export=download&authuser=0&confirm=t&uuid=a8f92992-86bd-43f4-92ce-9e4d99dca980&at=APZUnTUDPJVW_y6QeI9vlxlHAS0Q:1705851308643",
"dest": "Zoom_Out_Oversized_Cells_gold.xlsx"
},
"options": {
"rules": [
{
"type": "zoom",
"sheet_idx": 0,
"method": "lt",
"ref": 260
},
{
"type": "table_data",
"sheet_idx0": 0,
"sheet_idx1": "EI0"
}
]
}
}
}

View File

@@ -63,7 +63,7 @@
"command": [
"libreoffice",
"--convert-to",
"csv:Text - txt - csv (StarCalc):44,34,UTF-8,,,,false,true,true",
"csv:Text - txt - csv (StarCalc):44,34,UTF-8,,,,false,true,true,false,false,1",
"--outdir",
"/home/user",
"/home/user/Represent_in_millions_billions.xlsx"
@@ -76,11 +76,11 @@
"type": "vm_file",
"path": [
"/home/user/Represent_in_millions_billions.xlsx",
"/home/user/Represent_in_millions_billions.csv"
"/home/user/Represent_in_millions_billions-Sheet1.csv"
],
"dest": [
"Represent_in_millions_billions.xlsx",
"Represent_in_millions_billions.csv"
"Represent_in_millions_billions-Sheet1.csv"
],
"multi": true
},
@@ -92,13 +92,19 @@
],
"dest": [
"Represent_in_millions_billions_gold.xlsx",
"Represent_in_millions_billions_gold.csv"
"Represent_in_millions_billions_gold-Sheet1.csv"
],
"multi": true
},
"options": {
"as_shown": true,
"ignore_case": true
"rules": [
{
"type": "sheet_print",
"sheet_idx0": 0,
"sheet_idx1": "EI0",
"ignore_case": true
}
]
}
}
}