Improve own_votes test
This commit is contained in:
pare
661e8e0abf
commit
b2bc879f44
|
@ -6,7 +6,8 @@ def test_polls(api, api2):
|
||||||
status_poll = api2.status_post("nice", poll=poll_params)
|
status_poll = api2.status_post("nice", poll=poll_params)
|
||||||
poll = status_poll.poll
|
poll = status_poll.poll
|
||||||
assert poll.votes_count == 0
|
assert poll.votes_count == 0
|
||||||
|
assert poll.own_votes == []
|
||||||
|
|
||||||
api.poll_vote(status_poll.poll, [1])
|
api.poll_vote(status_poll.poll, [1])
|
||||||
poll2 = api.poll(poll)
|
poll2 = api.poll(poll)
|
||||||
assert poll2.votes_count == 1
|
assert poll2.votes_count == 1
|
||||||
|
|
Loading…
Referencia en una nova incidència