Skip to content

Commit efcb8bf

Browse files
committed
Fix UT
1 parent 7d6f6ea commit efcb8bf

32 files changed

+159
-156
lines changed

absbox/local/component.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2211,6 +2211,8 @@ def readPricingResult(x, locale) -> dict | None:
22112211
return None
22122212
h = None
22132213

2214+
if x is None or x == {}:
2215+
return None
22142216
tag = list(x.values())[0]["tag"]
22152217
if tag == "PriceResult":
22162218
h = {"cn": ["估值", "票面估值", "WAL", "久期", "凸性", "应计利息"],

absbox/tests/benchmark/china/resp/test01.out.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5272,6 +5272,6 @@
52725272
]
52735273
}
52745274
],
5275-
null
5275+
{}
52765276
]
52775277
}

absbox/tests/benchmark/china/resp/test02.out.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3752,6 +3752,6 @@
37523752
]
37533753
}
37543754
],
3755-
null
3755+
{}
37563756
]
37573757
}

absbox/tests/benchmark/china/resp/test03.out.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3020,6 +3020,6 @@
30203020
]
30213021
}
30223022
],
3023-
null
3023+
{}
30243024
]
30253025
}

absbox/tests/benchmark/china/resp/test04.out.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43240,6 +43240,6 @@
4324043240
]
4324143241
}
4324243242
],
43243-
null
43243+
{}
4324443244
]
4324543245
}

absbox/tests/benchmark/china/resp/test05.out.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55870,6 +55870,6 @@
5587055870
]
5587155871
}
5587255872
],
55873-
null
55873+
{}
5587455874
]
5587555875
}

absbox/tests/benchmark/china/resp/test06.out.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28325,6 +28325,6 @@
2832528325
]
2832628326
}
2832728327
],
28328-
null
28328+
{}
2832928329
]
2833028330
}

absbox/tests/benchmark/china/resp/test07.out.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8950,6 +8950,6 @@
89508950
]
89518951
}
89528952
],
8953-
null
8953+
{}
89548954
]
89558955
}

absbox/tests/benchmark/china/resp/test08.out.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -115134,6 +115134,6 @@
115134115134
]
115135115135
}
115136115136
],
115137-
null
115137+
{}
115138115138
]
115139115139
}

absbox/tests/benchmark/china/resp/test09.out.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4590,6 +4590,6 @@
45904590
]
45914591
}
45924592
],
4593-
null
4593+
{}
45944594
]
45954595
}

0 commit comments

Comments
 (0)