Explicitly module-scope vcr_config
This commit is contained in:
pare
a22083da88
commit
1956b18845
S'han modificat 1 arxius amb 3 adicions i 3 eliminacions
|
@ -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'],
|
||||
|
|
Loading…
Referencia en una nova incidència