Skip to content

Commit

Permalink
misc: Replace pytest-vcr dependency with pytest-recording
Browse files Browse the repository at this point in the history
`pytest-vcr` [1] is no longer maintained (last commit was in 2020), and
`VCR.py` recommends [2] `pytest-recording` instead.

Also, `pytest-vcr` does not correctly support `httpx` [3].

This change also removes unused cassettes.

[1] https://github.com/ktosiek/pytest-vcr
[2] https://vcrpy.readthedocs.io/en/latest/usage.html#pytest-integration
[3] ktosiek/pytest-vcr#46
  • Loading branch information
adamantike committed Jul 24, 2024
1 parent 158b16c commit 959e896
Show file tree
Hide file tree
Showing 12 changed files with 14 additions and 30,834 deletions.
21,998 changes: 0 additions & 21,998 deletions backend/handler/filesystem/tests/cassettes/test_get_rom_cover.yaml

This file was deleted.

2 changes: 0 additions & 2 deletions backend/handler/filesystem/tests/test_fs.py
Original file line number Diff line number Diff line change
@@ -1,12 +1,10 @@
import os
from pathlib import Path

import pytest
from handler.filesystem import fs_platform_handler, fs_resource_handler, fs_rom_handler
from models.platform import Platform


@pytest.mark.vcr
async def test_get_rom_cover():
path_cover_s, path_cover_l = await fs_resource_handler.get_cover(
overwrite=False, entity=None, url_cover=""
Expand Down
260 changes: 0 additions & 260 deletions backend/handler/tests/cassettes/test_get_matched_roms_by_id.yaml

This file was deleted.

Loading

0 comments on commit 959e896

Please sign in to comment.