From 1956b1884518857ca2160546bade82524fe3c587 Mon Sep 17 00:00:00 2001 From: Lorenz Diener Date: Mon, 26 Nov 2018 11:15:59 +0100 Subject: Explicitly module-scope vcr_config --- tests/conftest.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'tests') 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(): 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'], -- cgit v1.2.3