aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLorenz Diener <[email protected]>2018-11-26 11:15:59 +0100
committerLorenz Diener <[email protected]>2018-11-26 11:15:59 +0100
commit1956b1884518857ca2160546bade82524fe3c587 (patch)
treec96b810a0696a1999bbebd4df1df912360ea2ad3
parenta22083da8862e61f6c313b6d3e17a4a342a2de61 (diff)
downloadmastodon.py-1956b1884518857ca2160546bade82524fe3c587.tar.gz
Explicitly module-scope vcr_config
-rw-r--r--tests/conftest.py6
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():
27def api_anonymous(): 27def api_anonymous():
28 return _api(access_token=None) 28 return _api(access_token=None)
29 29
30@pytest.fixture() 30@pytest.fixture
31def status(api): 31def 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
37def status2(api): 37def 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")
43def vcr_config(): 43def vcr_config():
44 return dict( 44 return dict(
45 match_on = ['method', 'path', 'query', 'body'], 45 match_on = ['method', 'path', 'query', 'body'],
Powered by cgit v1.2.3 (git 2.41.0)