Skip to content

Commit ec5fc19

Browse files
committed
Adapt the metadata test to _standardise_currency's three-tuple
f854309 dropped div_scaled from the return tuple. The test unpacked four values with the third discarded, so it raised ValueError on the rebase. Unpack three.
1 parent 436ec01 commit ec5fc19

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

‎tests/test_price_repair.py‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -884,7 +884,7 @@ def make_df(closes, end_today):
884884
hist = PriceHistory(None, "XDEV.L", tz)
885885
hist._history_metadata = {"currency": "GBp", "exchangeTimezoneName": tz}
886886
df = make_df(_np.full(10, 5000.0), end_today=False)
887-
df2, currency, _, prices_scaled = hist._standardise_currency(df, "GBp")
887+
df2, currency, prices_scaled = hist._standardise_currency(df, "GBp")
888888
self.assertEqual(currency, "GBP")
889889
self.assertTrue(prices_scaled)
890890
self.assertTrue(hist._history_metadata["currencyRepaired"])
@@ -897,7 +897,7 @@ def make_df(closes, end_today):
897897
hist._history_metadata = {"currency": "GBp", "exchangeTimezoneName": tz,
898898
"regularMarketPrice": 4800.0}
899899
df = make_df(_np.full(10, 48.0), end_today=True)
900-
df2, currency, _, prices_scaled = hist._standardise_currency(df, "GBp")
900+
df2, currency, prices_scaled = hist._standardise_currency(df, "GBp")
901901
self.assertEqual(currency, "GBP")
902902
self.assertFalse(prices_scaled)
903903
self.assertTrue(hist._history_metadata["currencyRepaired"])

0 commit comments

Comments
 (0)