diff options
Diffstat (limited to 'tests/conftest.py')
-rw-r--r-- | tests/conftest.py | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/tests/conftest.py b/tests/conftest.py index a1dc161..b472eed 100644 --- a/tests/conftest.py +++ b/tests/conftest.py | |||
@@ -23,7 +23,6 @@ def api_low_version(): | |||
23 | def api2(): | 23 | def api2(): |
24 | return _api(access_token='__MASTODON_PY_TEST_ACCESS_TOKEN_2') | 24 | return _api(access_token='__MASTODON_PY_TEST_ACCESS_TOKEN_2') |
25 | 25 | ||
26 | |||
27 | @pytest.fixture | 26 | @pytest.fixture |
28 | def api_anonymous(): | 27 | def api_anonymous(): |
29 | return _api(access_token=None) | 28 | return _api(access_token=None) |
@@ -34,6 +33,11 @@ def status(api): | |||
34 | yield _status | 33 | yield _status |
35 | api.status_delete(_status['id']) | 34 | api.status_delete(_status['id']) |
36 | 35 | ||
36 | @pytest.fixture() | ||
37 | def status2(api): | ||
38 | _status = api.status_post('Toot, too!') | ||
39 | yield _status | ||
40 | api.status_delete(_status['id']) | ||
37 | 41 | ||
38 | @pytest.fixture() | 42 | @pytest.fixture() |
39 | def vcr_config(): | 43 | def vcr_config(): |