oxrlib/tests
Brett Smith ae3e4617d3 historical: Always format rates with the same precision.
When we format a rate as a price, we don't know how much precision
is "enough" to do the conversion, because we don't know what's
being converted to. As a result, we may (=will almost certainly)
end up formatting the rate with different precision on the cost
date vs. the price date, and that causes Beancount/Ledger to fail
to make the connection between them.

Using a constant of 6 is enough to make the current test for
"enough" precision pass, so just do that for now. This might need
further refinement in the future.
2020-05-19 15:56:19 -04:00
..
config_ini config: Begin Configuration class. 2017-05-16 09:19:37 -04:00
filecache cache: Refactor out CacheBase from FileCache. 2017-05-12 11:58:35 -04:00
__init__.py tests: Run with oxrlib's decimal context. 2017-12-31 10:04:37 -05:00
historical1.json historical: Ledger conversions show enough rate precision to stay balanced. 2017-06-29 16:54:16 -04:00
historical2.json historical: Add support for from_date arg. 2020-05-17 13:32:32 -04:00
test_CacheWriter.py tests: Rename TestCacheFile to avoid pytest warnings. 2017-05-17 17:33:15 -04:00
test_Configuration.py config: Accept a source date for displaying rates. 2020-05-16 14:17:29 -04:00
test_FileCache.py cache: Refactor out CacheBase from FileCache. 2017-05-12 11:58:35 -04:00
test_historical.py historical: Always format rates with the same precision. 2020-05-19 15:56:19 -04:00
test_LoaderChain.py LoaderChain: Add should_cache() method. 2017-05-17 12:27:20 -04:00
test_OXRAPIRequest.py errors: Start module. 2017-05-12 08:12:21 -04:00
test_Rate.py rate: Add Rate.convert method. 2017-05-16 12:26:32 -04:00