diff options
author | Lorenz Diener <[email protected]> | 2018-06-04 20:55:44 +0200 |
---|---|---|
committer | Lorenz Diener <[email protected]> | 2018-06-04 20:55:44 +0200 |
commit | 362767f91146271e17f7f10bd976940a1544bd5a (patch) | |
tree | 577dcbdaeb40f34e9036020f8dd916802e0950c5 /tests/conftest.py | |
parent | 0882c91cfc381d30113b50927014a1e83a76733f (diff) | |
download | mastodon.py-362767f91146271e17f7f10bd976940a1544bd5a.tar.gz |
Pinning tests
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(): |