Skip to content

Commit

Permalink
More sophisticated algorithm that uses secondary historic rate for co…
Browse files Browse the repository at this point in the history
…mparison if available
  • Loading branch information
Mike committed Nov 9, 2023
1 parent 85c0df1 commit a929277
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions tests/hdx/location/test_currency.py
Expand Up @@ -563,3 +563,6 @@ def test_get_adjclose(self, retrievers, secondary_historic_url):
}
timestamp = Currency._get_int_timestamp(parse_date("2015-12-15"))
assert Currency._get_adjclose(indicators, "COP", timestamp) == 3270

Currency._no_historic = True
assert Currency._get_adjclose(indicators, "COP", timestamp) is None

0 comments on commit a929277

Please sign in to comment.