Commit Graph

40 Commits

Author SHA1 Message Date
Georges-Antoine Assi
595c52bcab Unify singular slugs 2025-07-23 21:52:52 -04:00
Georges-Antoine Assi
3d81f0dd39 fix a test 2025-07-18 23:39:42 -04:00
Georges-Antoine Assi
73545ffa97 [HOTFIX] Fix uploading cover art manually 2025-07-18 23:32:17 -04:00
Georges-Antoine Assi
f4b4c34dc7 fix tests 2025-07-18 11:21:40 -04:00
Georges-Antoine Assi
51652d5084 make all path stuff async 2025-07-18 10:53:55 -04:00
Georges-Antoine Assi
96028bbff8 fix some tests 2025-07-17 23:34:08 -04:00
Georges-Antoine Assi
0fa8d215a1 rename function 2025-07-17 21:35:12 -04:00
Georges-Antoine Assi
ff7fdbd9a4 fix moving files and folders 2025-07-17 21:31:27 -04:00
Georges-Antoine Assi
0df4eb1985 fix some aggressive usage 2025-07-17 21:20:02 -04:00
Georges-Antoine Assi
c93687a0f4 handle some errors better 2025-07-17 18:15:44 -04:00
Georges-Antoine Assi
9d6b30120f add resource handler test 2025-07-17 18:00:36 -04:00
Georges-Antoine Assi
877be2fe35 add test for roms handler 2025-07-17 17:38:56 -04:00
Georges-Antoine Assi
a84c3216f4 add test for platform handler 2025-07-17 17:11:55 -04:00
Georges-Antoine Assi
e4fdf70b63 make the tests real 2025-07-17 16:49:07 -04:00
Georges-Antoine Assi
29023386a7 add firmware handler test 2025-07-17 16:23:22 -04:00
Georges-Antoine Assi
2ca3954d6b add assets handler test 2025-07-17 16:14:01 -04:00
Georges-Antoine Assi
29fffb8833 add tests for base handler 2025-07-17 16:06:44 -04:00
Georges-Antoine Assi
5b80e0ca39 Calculate hashes before fetching metadata 2025-06-12 20:55:49 -04:00
Georges-Antoine Assi
c2747c5185 file name matching should be reverse match 2025-04-23 14:24:24 -04:00
Georges-Antoine Assi
cc899b54e2 refactor exclude_files fnct 2025-04-23 13:52:11 -04:00
zurdi
0660502f5a feat: screenscraper manual support 2025-02-06 18:53:23 +00:00
Georges-Antoine Assi
7bde4aee70 complete the rst of the files 2024-12-20 23:45:25 -05:00
Georges-Antoine Assi
9386ca9e4a changes from self-review 2024-07-27 16:31:32 -04:00
Georges-Antoine Assi
3a9cef24e0 get it all wokring 2024-07-27 13:30:52 -04:00
Michael Manganiello
959e896aa3 misc: Replace pytest-vcr dependency with pytest-recording
`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] https://github.com/ktosiek/pytest-vcr/issues/46
2024-07-24 12:39:41 -03:00
Michael Manganiello
56066d6765 misc: Migrate filesystem resource handler to async
For filesystem resource handler, `requests` calls have been replaced
with `httpx`, and file I/O has been replaced with `anyio` utils.

The existing approach to save covers and screenshots, by calling
`shutil.copyfileobj` with the raw response is no longer needed. `httpx`
does not provide a file-like object when streaming [1], so there's no
easy drop-in replacement.

However, the applied solution correctly builds the file iteratively, by
consuming the response in chunks.

[1] https://github.com/encode/httpx/discussions/2296
2024-07-24 00:18:17 -03:00
zurdi
59c2a51a6f added collection cover management 2024-07-03 14:31:17 +02:00
Georges-Antoine Assi
6e049c1012 can accept nulls 2024-06-19 10:19:00 -04:00
Georges-Antoine Assi
e2c5ba68cb backend tweaks + refactor 2024-06-18 23:21:17 -04:00
zurdi
72b63322e4 fixed resources migration 2024-06-18 11:46:36 +02:00
zurdi
84e442c0c5 cover path platform migrated to id 2024-06-18 01:24:19 +02:00
zurdi
ed67cfff12 fixed unit tests 2024-06-17 18:05:48 +02:00
Zurdi
242dbb9da5 cover path migration to id 2024-06-17 13:45:35 +02:00
Georges-Antoine Assi
652047ad66 update test cassettes 2024-06-15 12:18:01 -04:00
Zurdi
408f9d2e1d improved config file unit test handling 2024-06-13 23:07:57 +02:00
Georges-Antoine Assi
a7cf0d389a run trunk format on all files 2024-05-21 10:18:13 -04:00
Georges-Antoine Assi
880345f20c ruff-only pre-commit 2024-05-18 12:05:57 -04:00
Georges-Antoine Assi
2749aaee4a rename back to old names 2024-05-05 16:59:30 -04:00
Georges-Antoine Assi
dc33054ba1 more name refactoring 2024-05-05 16:45:58 -04:00
Georges-Antoine Assi
9ad28f3294 more refactoring again 2024-05-05 16:32:40 -04:00