aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'tests/conftest.py')
-rw-r--r--tests/conftest.py8
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
13def 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()
13def status(mastodon): 21def status(mastodon):
14 _status = mastodon.status_post('Toot!') 22 _status = mastodon.status_post('Toot!')
Powered by cgit v1.2.3 (git 2.41.0)