diff --git a/acceptance/python/src/test_naughty_strings.py b/acceptance/python/src/test_naughty_strings.py index 61776048..35746bc9 100644 --- a/acceptance/python/src/test_naughty_strings.py +++ b/acceptance/python/src/test_naughty_strings.py @@ -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 diff --git a/setup.py b/setup.py index c99c0740..27c5f091 100644 --- a/setup.py +++ b/setup.py @@ -77,15 +77,15 @@ install_requires = [ 'cryptoconditions==0.8.0', 'python-rapidjson~=0.6.0', 'logstats~=0.2.1', - 'flask>=0.10.1', + 'flask~=0.12.4', 'flask-cors~=3.0.0', 'flask-restful~=0.3.0', - 'requests>=2.20.0', + 'requests~=2.20.0', 'gunicorn~=19.0', 'jsonschema~=2.5.1', 'pyyaml>=4.2b1', 'aiohttp~=3.0', - 'bigchaindb-abci==1.0.1', + 'bigchaindb-abci>=1.0.2', 'setproctitle~=1.1.0', 'packaging~=18.0', ]