This commit is contained in:
Sylvain Bellemare 2016-07-19 12:07:47 +02:00 committed by GitHub
parent 6b2d87b53f
commit c4c35a25aa
1 changed files with 1 additions and 2 deletions

View File

@ -197,7 +197,7 @@ def test_update_config(monkeypatch):
'database': {'host': 'test-host', 'name': 'bigchaindb', 'port': 28015}
}
monkeypatch.setattr('bigchaindb.config_utils.file_config', lambda *args, **kwargs: file_config)
config_utils.autoconfigure()
config_utils.autoconfigure(config=file_config)
# update configuration, retaining previous changes
config_utils.update_config({'database': {'port': 28016, 'name': 'bigchaindb_other'}})
@ -205,4 +205,3 @@ def test_update_config(monkeypatch):
assert bigchaindb.config['database']['host'] == 'test-host'
assert bigchaindb.config['database']['name'] == 'bigchaindb_other'
assert bigchaindb.config['database']['port'] == 28016