From 842664cb144b2f44f2bf2b8a1e8c1ef508cd2482 Mon Sep 17 00:00:00 2001 From: Rodolphe Marques Date: Thu, 15 Jun 2017 15:33:21 +0200 Subject: [PATCH] Improved documentation - fixed test name --- docs/server/source/http-client-server-api.rst | 2 +- tests/web/test_outputs.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/server/source/http-client-server-api.rst b/docs/server/source/http-client-server-api.rst index d67d5edd..c7a2d3e3 100644 --- a/docs/server/source/http-client-server-api.rst +++ b/docs/server/source/http-client-server-api.rst @@ -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} diff --git a/tests/web/test_outputs.py b/tests/web/test_outputs.py index a0b8eeb4..d20068d0 100644 --- a/tests/web/test_outputs.py +++ b/tests/web/test_outputs.py @@ -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)