Repository navigation
Expand file tree
/
Copy pathwrong-value.json
More file actions
90 lines (90 loc) · 1.79 KB
/
Copy pathwrong-value.json
File metadata and controls
90 lines (90 loc) · 1.79 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
{
"version": 1,
"name": "False success: wrong-value",
"argv": [
"{python}",
"{spec_dir}/export.py",
"input.csv",
"report.json",
"--fault",
"wrong-value"
],
"inputs": [
{
"source": "fixtures/input.csv",
"dest": "input.csv"
}
],
"timeout_seconds": 5,
"expect": {
"exit_code": 0,
"stdout_regex": "Export complete",
"files": [
{
"path": "report.json",
"min_size": 1,
"json_contains": {
"currency": "CAD",
"summary": {
"row_count": 3,
"total": "33.75"
}
},
"json_equals": {
"currency": "CAD",
"summary": {
"row_count": 3,
"total": "33.75"
},
"rows": [
{
"id": "1",
"customer": "Ada",
"amount": "12.50"
},
{
"id": "2",
"customer": "Grace",
"amount": "8.25"
},
{
"id": "3",
"customer": "Linus",
"amount": "13.00"
}
]
}
},
{
"path": "report.csv",
"min_size": 1,
"csv": {
"columns": [
"id",
"customer",
"amount"
],
"min_rows": 3,
"exact_columns": true,
"rows": [
{
"id": "1",
"customer": "Ada",
"amount": "12.50"
},
{
"id": "2",
"customer": "Grace",
"amount": "8.25"
},
{
"id": "3",
"customer": "Linus",
"amount": "13.00"
}
]
}
}
]
}
}