Skip to content

Commit 4432266

Browse files
committed
test: provide "path" instead of "dir" fixture for old pytest-vcr
1 parent 5c721e2 commit 4432266

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

conftest.py

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,3 +36,10 @@ def vcr_cassette_dir(request):
3636
# We know it's part of Sopel...
3737
parts = parts[1:]
3838
return os.path.join('test', 'vcr', *parts)
39+
40+
41+
@pytest.fixture(scope='module')
42+
def vcr_cassette_path(request):
43+
# pytest-vcr 0.3.0 looks for this fixture name
44+
# remove when killing off Python 3.3 support
45+
return vcr_cassette_dir(request)

0 commit comments

Comments
 (0)