diff options
author | Lorenz Diener <[email protected]> | 2018-11-26 11:15:59 +0100 |
---|---|---|
committer | Lorenz Diener <[email protected]> | 2018-11-26 11:15:59 +0100 |
commit | 1956b1884518857ca2160546bade82524fe3c587 (patch) | |
tree | c96b810a0696a1999bbebd4df1df912360ea2ad3 | |
parent | a22083da8862e61f6c313b6d3e17a4a342a2de61 (diff) | |
download | mastodon.py-1956b1884518857ca2160546bade82524fe3c587.tar.gz |
Explicitly module-scope vcr_config
-rw-r--r-- | tests/conftest.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/tests/conftest.py b/tests/conftest.py index 7346d31..3291bbe 100644 --- a/tests/conftest.py +++ b/tests/conftest.py | |||
@@ -27,19 +27,19 @@ def api2(): | |||
27 | def api_anonymous(): | 27 | def api_anonymous(): |
28 | return _api(access_token=None) | 28 | return _api(access_token=None) |
29 | 29 | ||
30 | @pytest.fixture() | 30 | @pytest.fixture |
31 | def status(api): | 31 | def status(api): |
32 | _status = api.status_post('Toot!') | 32 | _status = api.status_post('Toot!') |
33 | yield _status | 33 | yield _status |
34 | api.status_delete(_status['id']) | 34 | api.status_delete(_status['id']) |
35 | 35 | ||
36 | @pytest.fixture() | 36 | @pytest.fixture |
37 | def status2(api): | 37 | def status2(api): |
38 | _status = api.status_post('Toot, too!') | 38 | _status = api.status_post('Toot, too!') |
39 | yield _status | 39 | yield _status |
40 | api.status_delete(_status['id']) | 40 | api.status_delete(_status['id']) |
41 | 41 | ||
42 | @pytest.fixture() | 42 | @pytest.fixture(scope="module") |
43 | def vcr_config(): | 43 | def vcr_config(): |
44 | return dict( | 44 | return dict( |
45 | match_on = ['method', 'path', 'query', 'body'], | 45 | match_on = ['method', 'path', 'query', 'body'], |