Changeset - 18f7ea7038d3
[Not reviewed]
0 2 0
Brett Smith - 7 years ago 2017-05-17 16:29:50
brettcsmith@brettcsmith.org
Configuration: Set up CacheWriter.
2 files changed with 4 insertions and 1 deletions:
0 comments (0 inline, 0 general)
oxrlib/config.py
Show inline comments
...
 
@@ -7,3 +7,3 @@ import pathlib
 

	
 
from . import loaders
 
from . import cache, loaders
 

	
...
 
@@ -129,2 +129,3 @@ class Configuration:
 
            pass
 
        self.cache = cache.CacheWriter(**kwargs)
 
        return loaders.FileCache(**kwargs)
tests/test_Configuration.py
Show inline comments
...
 
@@ -7,2 +7,3 @@ from . import any_date, relpath
 

	
 
import oxrlib.cache
 
import oxrlib.config
...
 
@@ -24,2 +25,3 @@ def test_full_config():
 
    assert len(loaders) == 2
 
    assert type(config.cache) is oxrlib.cache.CacheWriter
 

	
0 comments (0 inline, 0 general)