mirror of
https://github.com/bigchaindb/bigchaindb.git
synced 2024-10-13 13:34:05 +00:00
Updated bigchaindb-abci (#2689)
* Updated bigchaindb-abci Reason: gevent API change breaks BigchainDB installation Signed-off-by: David Dashyan <mail@davie.li> * Version bump Signed-off-by: David Dashyan <mail@davie.li> * Updated changelog
This commit is contained in:
@@ -66,8 +66,11 @@ def send_naughty_tx(asset, metadata):
|
||||
# Then she expects a nicely formatted error code
|
||||
status_code = sent_transaction.status_code
|
||||
error = sent_transaction.error
|
||||
regex = '\{"message":"Invalid transaction \\(ValidationError\\): Invalid key name .* in asset object. ' \
|
||||
'The key name cannot contain characters .* or null characters","status":400\}\n'
|
||||
regex = (
|
||||
r'\{\s*\n*'
|
||||
r'\s*"message": "Invalid transaction \(ValidationError\): Invalid key name.*The key name cannot contain characters.*\n*' # noqa
|
||||
r'\s*"status": 400\n*'
|
||||
r'\s*\}\n*')
|
||||
assert status_code == 400
|
||||
assert re.fullmatch(regex, error), sent_transaction
|
||||
# Otherwise, she expects to see her transaction in the database
|
||||
|
||||
Reference in New Issue
Block a user