mirror of
https://github.com/bigchaindb/bigchaindb.git
synced 2024-10-13 13:34:05 +00:00
Add test for empty block_id parameter for votes API
This commit is contained in:
parent
b1d6d356cb
commit
7071d471a5
@ -48,6 +48,10 @@ def test_get_votes_endpoint_multiple_votes(b, client):
|
||||
|
||||
@pytest.mark.bdb
|
||||
def test_get_votes_endpoint_returns_empty_list_not_found(client):
|
||||
res = client.get(VOTES_ENDPOINT + "?block_id=")
|
||||
assert [] == res.json
|
||||
assert res.status_code == 200
|
||||
|
||||
res = client.get(VOTES_ENDPOINT + "?block_id=123")
|
||||
assert [] == res.json
|
||||
assert res.status_code == 200
|
||||
|
Loading…
x
Reference in New Issue
Block a user