diff options
author | codl <[email protected]> | 2017-11-27 14:19:21 +0100 |
---|---|---|
committer | codl <[email protected]> | 2017-11-27 14:20:31 +0100 |
commit | cfc9c1ce0c6440506d3a88397c65ad47bdd2d662 (patch) | |
tree | 393d35fe5317117f12370fe5c01efa3536c2b717 /tests/conftest.py | |
parent | 765db0fc8149aad4c103244e013fdd128af8d3d2 (diff) | |
download | mastodon.py-cfc9c1ce0c6440506d3a88397c65ad47bdd2d662.tar.gz |
add timeline tests
Diffstat (limited to 'tests/conftest.py')
-rw-r--r-- | tests/conftest.py | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/tests/conftest.py b/tests/conftest.py index 1858ab8..ce013cb 100644 --- a/tests/conftest.py +++ b/tests/conftest.py | |||
@@ -9,6 +9,14 @@ def mastodon(): | |||
9 | client_secret='__MASTODON_PY_TEST_SECRET', | 9 | client_secret='__MASTODON_PY_TEST_SECRET', |
10 | access_token='__MASTODON_PY_TEST_TOKEN') | 10 | access_token='__MASTODON_PY_TEST_TOKEN') |
11 | 11 | ||
12 | @pytest.fixture | ||
13 | def mastodon_anonymous(): | ||
14 | import mastodon as _mastodon | ||
15 | return _mastodon.Mastodon( | ||
16 | api_base_url='http://localhost:3000', | ||
17 | client_id='__MASTODON_PY_TEST_ID', | ||
18 | client_secret='__MASTODON_PY_TEST_SECRET') | ||
19 | |||
12 | @pytest.fixture() | 20 | @pytest.fixture() |
13 | def status(mastodon): | 21 | def status(mastodon): |
14 | _status = mastodon.status_post('Toot!') | 22 | _status = mastodon.status_post('Toot!') |