Skip to content

Commit

Permalink
Fix cassette filenames for Windows
Browse files Browse the repository at this point in the history
  • Loading branch information
domdfcoding committed Feb 12, 2021
1 parent cdd6e4a commit 8f8fc59
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/test_cli/test_add.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ def cassette(request: FixtureRequest, monkeypatch):
monkeypatch.setattr(add.PYPI_API, "session", session)

with Betamax(session) as vcr:
vcr.use_cassette(request.node.name, record="once")
vcr.use_cassette(request.node.name.translate({ord(k): "_" for k in '<>:"/\\|?*'}), record="once")

yield session

Expand Down

0 comments on commit 8f8fc59

Please sign in to comment.