mirror of
https://github.com/bigchaindb/bigchaindb.git
synced 2024-10-13 13:34:05 +00:00
Improved documentation
- fixed test name
This commit is contained in:
@@ -184,7 +184,7 @@ unspent outputs.
|
||||
:param spent: Boolean value ("true" or "false") indicating if the result set
|
||||
should include only spent or only unspent outputs. If not
|
||||
specified the result includes all the outputs (both spent
|
||||
and unspent).
|
||||
and unspent) associated with the ``public_key``.
|
||||
|
||||
.. http:get:: /api/v1/outputs?public_key={public_key}
|
||||
|
||||
|
||||
@@ -59,7 +59,7 @@ def test_get_outputs_endpoint_with_invalid_public_key(client):
|
||||
assert res.status_code == 400
|
||||
|
||||
|
||||
def test_get_outputs_endpoint_with_invalid_unspent(client, user_pk):
|
||||
def test_get_outputs_endpoint_with_invalid_spent(client, user_pk):
|
||||
expected = {'message': {'spent': 'Boolean value must be "true" or "false" (lowercase)'}}
|
||||
params = '?spent=tru&public_key={}'.format(user_pk)
|
||||
res = client.get(OUTPUTS_ENDPOINT + params)
|
||||
|
||||
Reference in New Issue
Block a user