mirror of
https://github.com/bigchaindb/bigchaindb.git
synced 2024-10-13 13:34:05 +00:00
Fix unit test
This commit is contained in:
parent
3b1e6adb43
commit
550b9cb804
@ -168,7 +168,7 @@ def test_initialize_replica_set(mock_cmd_line_opts):
|
||||
]
|
||||
|
||||
# check that it returns
|
||||
assert initialize_replica_set('host', 1337, 1000, False, None, None) is None
|
||||
assert initialize_replica_set('host', 1337, 1000, 'dbname', False, None, None) is None
|
||||
|
||||
# test it raises OperationError if anything wrong
|
||||
with mock.patch.object(Database, 'command') as mock_command:
|
||||
@ -178,4 +178,4 @@ def test_initialize_replica_set(mock_cmd_line_opts):
|
||||
]
|
||||
|
||||
with pytest.raises(pymongo.errors.OperationFailure):
|
||||
initialize_replica_set('host', 1337, 1000, False, None, None)
|
||||
initialize_replica_set('host', 1337, 1000, 'dbname', False, None, None)
|
||||
|
Loading…
x
Reference in New Issue
Block a user