Changeset - 3b5a563ef64b
[Not reviewed]
0 2 0
Brett Smith - 7 years ago 2017-05-17 16:56:19
brettcsmith@brettcsmith.org
historical: Write results to cache when appropriate.
2 files changed with 5 insertions and 0 deletions:
0 comments (0 inline, 0 general)
oxrlib/commands/historical.py
Show inline comments
...
 
@@ -14,2 +14,4 @@ def run(config, stdout, stderr):
 
        rate = oxrrate.Rate.from_json_file(rate_json)
 
    if loaders.should_cache():
 
        config.cache.save_rate(rate)
 
    if not config.args.from_currency:
tests/test_historical.py
Show inline comments
...
 
@@ -21,2 +21,5 @@ class FakeResponder:
 

	
 
    def should_cache(self):
 
        return False
 

	
 

	
0 comments (0 inline, 0 general)