From cfc9c1ce0c6440506d3a88397c65ad47bdd2d662 Mon Sep 17 00:00:00 2001 From: codl Date: Mon, 27 Nov 2017 14:19:21 +0100 Subject: add timeline tests --- tests/conftest.py | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'tests/conftest.py') 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(): client_secret='__MASTODON_PY_TEST_SECRET', access_token='__MASTODON_PY_TEST_TOKEN') +@pytest.fixture +def mastodon_anonymous(): + import mastodon as _mastodon + return _mastodon.Mastodon( + api_base_url='http://localhost:3000', + client_id='__MASTODON_PY_TEST_ID', + client_secret='__MASTODON_PY_TEST_SECRET') + @pytest.fixture() def status(mastodon): _status = mastodon.status_post('Toot!') -- cgit v1.2.3