test(api): add yahoo fixtures, mock-provider errors, and CLI integration coverage

This commit is contained in:
Ciphercat 2026-03-05 18:28:40 +00:00
commit 639ee4b041
6 changed files with 233 additions and 51 deletions

30
tests/fixtures/chart_bbca_1d.json vendored Normal file
View file

@ -0,0 +1,30 @@
{
"chart": {
"result": [
{
"meta": {
"symbol": "BBCA.JK",
"regularMarketPrice": 9875.0,
"previousClose": 9758.0,
"regularMarketVolume": 12300000,
"marketCap": 1215200000000000,
"fiftyTwoWeekHigh": 10250.0,
"fiftyTwoWeekLow": 7800.0,
"averageDailyVolume3Month": 10000000
},
"timestamp": [1709251200],
"indicators": {
"quote": [
{
"open": [9800.0],
"high": [9900.0],
"low": [9750.0],
"close": [9875.0],
"volume": [12300000]
}
]
}
}
]
}
}