aboutsummaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorLorenz Diener <[email protected]>2019-10-12 19:57:14 +0200
committerLorenz Diener <[email protected]>2019-10-12 19:57:14 +0200
commitb2bc879f445604c422c2645e578e591acee5a5ed (patch)
treec1bc07bb1e19e3dd962e02698f7019befd87c490 /tests
parent661e8e0abfa4d8ebff930d4bcdb7bfc570a922fc (diff)
downloadmastodon.py-b2bc879f445604c422c2645e578e591acee5a5ed.tar.gz
Improve own_votes test
Diffstat (limited to 'tests')
-rw-r--r--tests/test_polls.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/tests/test_polls.py b/tests/test_polls.py
index 2187d31..5f32526 100644
--- a/tests/test_polls.py
+++ b/tests/test_polls.py
@@ -6,7 +6,8 @@ def test_polls(api, api2):
6 status_poll = api2.status_post("nice", poll=poll_params) 6 status_poll = api2.status_post("nice", poll=poll_params)
7 poll = status_poll.poll 7 poll = status_poll.poll
8 assert poll.votes_count == 0 8 assert poll.votes_count == 0
9 9 assert poll.own_votes == []
10
10 api.poll_vote(status_poll.poll, [1]) 11 api.poll_vote(status_poll.poll, [1])
11 poll2 = api.poll(poll) 12 poll2 = api.poll(poll)
12 assert poll2.votes_count == 1 13 assert poll2.votes_count == 1
Powered by cgit v1.2.3 (git 2.41.0)