Improved documentation

- fixed test name
This commit is contained in:
Rodolphe Marques
2017-06-15 15:33:21 +02:00
parent b523ba3fe5
commit 842664cb14
2 changed files with 2 additions and 2 deletions

View File

@@ -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}

View File

@@ -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)