From 362767f91146271e17f7f10bd976940a1544bd5a Mon Sep 17 00:00:00 2001 From: Lorenz Diener Date: Mon, 4 Jun 2018 20:55:44 +0200 Subject: Pinning tests --- tests/conftest.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'tests/conftest.py') 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(): def api2(): return _api(access_token='__MASTODON_PY_TEST_ACCESS_TOKEN_2') - @pytest.fixture def api_anonymous(): return _api(access_token=None) @@ -34,6 +33,11 @@ def status(api): yield _status api.status_delete(_status['id']) +@pytest.fixture() +def status2(api): + _status = api.status_post('Toot, too!') + yield _status + api.status_delete(_status['id']) @pytest.fixture() def vcr_config(): -- cgit v1.2.3