mirror of
https://github.com/bigchaindb/bigchaindb.git
synced 2024-10-13 13:34:05 +00:00
Add test for run_configure
This commit is contained in:
parent
2b483767ea
commit
a766fc60b7
@ -75,3 +75,11 @@ def test_drop_existing_db(mock_file_config, mock_rethink_db_drop):
|
||||
from bigchaindb.commands.bigchain import run_drop
|
||||
args = Namespace(config=None, yes=True)
|
||||
run_drop(args)
|
||||
|
||||
|
||||
def test_run_configure_when_config_exists_and_skipping(monkeypatch):
|
||||
from bigchaindb.commands.bigchain import run_configure
|
||||
monkeypatch.setattr('os.path.exists', lambda path: True)
|
||||
args = Namespace(config='foo', yes=True)
|
||||
return_value = run_configure(args, skip_if_exists=True)
|
||||
assert return_value is None
|
||||
|
Loading…
x
Reference in New Issue
Block a user