Explicitly module-scope vcr_config

This commit is contained in:
Lorenz Diener 2018-11-26 11:15:59 +01:00
pare a22083da88
commit 1956b18845

Veure arxiu

@ -27,19 +27,19 @@ def api2():
def api_anonymous():
return _api(access_token=None)
@pytest.fixture()
@pytest.fixture
def status(api):
_status = api.status_post('Toot!')
yield _status
api.status_delete(_status['id'])
@pytest.fixture()
@pytest.fixture
def status2(api):
_status = api.status_post('Toot, too!')
yield _status
api.status_delete(_status['id'])
@pytest.fixture()
@pytest.fixture(scope="module")
def vcr_config():
return dict(
match_on = ['method', 'path', 'query', 'body'],