kopia lustrzana https://github.com/halcy/Mastodon.py
Improve own_votes test
rodzic
661e8e0abf
commit
b2bc879f44
|
@ -6,6 +6,7 @@ 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)
|
||||||
|
|
Ładowanie…
Reference in New Issue