diff options
author | Lorenz Diener <[email protected]> | 2019-10-12 19:57:14 +0200 |
---|---|---|
committer | Lorenz Diener <[email protected]> | 2019-10-12 19:57:14 +0200 |
commit | b2bc879f445604c422c2645e578e591acee5a5ed (patch) | |
tree | c1bc07bb1e19e3dd962e02698f7019befd87c490 | |
parent | 661e8e0abfa4d8ebff930d4bcdb7bfc570a922fc (diff) | |
download | mastodon.py-b2bc879f445604c422c2645e578e591acee5a5ed.tar.gz |
Improve own_votes test
-rw-r--r-- | tests/test_polls.py | 3 |
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 |