Commit Graph

672 Commits

Author SHA1 Message Date
Maxr1998
1447282ad7 Pass tests 2026-05-24 01:33:00 +01:00
Maxr1998
acfeb0987f Fix formatting 2026-05-24 01:33:00 +01:00
Maxr1998
3eac908355 Add tests for file import 2026-05-24 01:33:00 +01:00
Maxr1998
b126598c2f Add tests for new behavior 2026-05-24 01:33:00 +01:00
Sebastian Mohr
53060a4ba0 Reformatted 2026-05-21 16:55:05 +02:00
Sebastian Mohr
f7114266a4 Fold lines. 2026-05-21 16:54:50 +02:00
Sebastian Mohr
96a96bb4ec Removed typehints 2026-05-21 16:54:50 +02:00
Sebastian Mohr
39b1e21904 Removed unnecessary str typehint. 2026-05-21 16:54:50 +02:00
Sebastian Mohr
d90f22f8e5 Moved to requests_mock fixtures:
- Renamed image_response_mocker to image_request_mock
- Use requests_mock.mocker.Mocker instead of responses.RequestsMock
- Renamed function add to get
2026-05-21 16:54:50 +02:00
Sebastian Mohr
59ba8ad21b Moved PytestTestHelper into test/helper.py 2026-05-21 16:54:50 +02:00
Sebastian Mohr
2fea2efc4a Fixed logic inversion in cleanup fixture. 2026-05-21 16:54:50 +02:00
Sebastian Mohr
65bceb4f49 Fixed a number of typing issues. 2026-05-21 16:54:50 +02:00
Sebastian Mohr
a99c7caf37 EmbedartCliTest -> TestEmbedartCli
use the new image_response_mocker and pytest setup
2026-05-21 16:54:50 +02:00
Sebastian Mohr
f3c1663536 TestAAO use image_response_mocker 2026-05-21 16:54:50 +02:00
Sebastian Mohr
349fcce72a ArtImporterTest -> TestArtImporter 2026-05-21 16:54:50 +02:00
Sebastian Mohr
0172436592 CombinedTest -> TestCombined 2026-05-21 16:54:50 +02:00
Sebastian Mohr
30898f7dfd TestFetchImage use image_response_mocker 2026-05-21 16:54:50 +02:00
Sebastian Mohr
5d427aa159 GoogleImageTest -> TestGoogleImage 2026-05-21 16:54:50 +02:00
Sebastian Mohr
8e919fd4f8 ITunesStoreTest -> TestITunesStore 2026-05-21 16:54:50 +02:00
Sebastian Mohr
e59f2f9047 FanartTVTest -> TestFanartTV 2026-05-21 16:54:50 +02:00
Sebastian Mohr
45bb25741c CoverArtArchiveTest -> TestCoverArtArchive: Uses new
image_response_mocker instead of class inheritance. Aligns more
with pytest imo
2026-05-21 16:54:50 +02:00
Sebastian Mohr
91d5f5aef8 CAAHelper -> CAAData: The functions here are not needed anymore as they
are now provided by the imageResponseMocker. Also fixed indenting of
json blocks.
2026-05-21 16:54:39 +02:00
Sebastian Mohr
da3285d0d9 TestDeprecatedConfig -> TestDeprecatedConfig
EnforceRatioConfigTest -> TestEnforceRatioConfig
2026-05-21 16:54:29 +02:00
Sebastian Mohr
b62ba96fd0 AAOTest -> TestAAO 2026-05-21 16:54:29 +02:00
Sebastian Mohr
6e72c50758 FSArtTest -> TestFSArt 2026-05-21 16:54:29 +02:00
Sebastian Mohr
83bb069968 FetchImageTest -> TestFetchImage 2026-05-21 16:54:29 +02:00
Sebastian Mohr
4d2b097716 AlbumArtPerformOperationTest -> TestAlbumArtPerformOperation:
- moved setup into proper pytest fixtures for seperation
2026-05-21 16:54:29 +02:00
Sebastian Mohr
efb35782a9 AlbumArtOperationTestCase -> AlbumArtOperationMixin
AlbumArtOperationConfigurationTest -> TestAlbumArtOperationConfiguration
2026-05-21 16:54:29 +02:00
Sebastian Mohr
402b814b4e Replaced UseThePlugin Unittest class with pytest based setup. 2026-05-21 16:54:29 +02:00
Sebastian Mohr
adfb73b66d Run ruff format 2026-05-20 16:53:06 +02:00
Šarūnas Nejus
d4fd36a033 sort: Update imports 2026-05-17 07:39:13 +01:00
Šarūnas Nejus
30ab81eb5b Extract UserError from beets.ui to a new beets.exceptions module.
Update all references in core, plugins, and tests to import UserError
from the new location. This centralizes exception handling and improves
code organization.
2026-05-16 11:18:51 +01:00
Sebastian Mohr
cf97ce87b8 Refactored test_mb_sync to use pytest and removed capture_log in favor
of caplog.
2026-05-14 15:47:00 +02:00
ShimmerGlass
65ccaf1408 fix(mbsync): do not clear metadata if import.from_scratch is set
if import.from_scratch was set in the config, runnning mbsync would
clear any metadata not provided by MBz (replay gain, lyrics, genres...).
we now ignore this setting when running mbsync to preserve metadata.

Fixes: #6613
2026-05-13 18:06:08 +02:00
ShimmerGlass
ec1c25644d fix(duplicates): output format
* the pugin used an empty format string unless --count was provided,
  resulting in outputs like `: 1`. it now correctly displays duplicated
  items.
* --count was ignored (aside from above bug), and item count was always
  appended to output.
2026-05-11 22:43:53 +02:00
J0J0 Todos
5f94ca79a3 lastgenre: Test empty last.fm result doesnt wipe
Add a test case that proves that issue 5991 is fixed by now.
2026-05-09 09:11:05 +02:00
Šarūnas Nejus
cde2dd139e Merge branch 'master' into fix/mbpseudo-raw-data 2026-05-08 13:38:30 +01:00
Sebastian Mohr
2056cce74b test_hook: Removed capture_log in favor for pytest caplog
Also minor refactor to align with pytest
2026-05-08 13:47:37 +02:00
Martin Caspersen
5342d9bc76 Merge remote-tracking branch 'fork/master' into fix/mbpseudo-raw-data 2026-05-08 12:25:49 +02:00
Šarūnas Nejus
b15006ca11 Remove dependency on global config 2026-05-06 15:30:10 +01:00
Šarūnas Nejus
10d0f37793 Merge branch 'master' into fix/badfiles-quiet-mode 2026-05-02 22:35:41 +01:00
ShimmerGlass
cc63a4e9b9 fix(MusicBrainz): date parsing fix
Correctly handle release dates where leading or
intermediate components are missing, e.g. 2008-??-02
2026-05-02 16:26:48 +02:00
Eyüp Can Akman
382ec79fe0 badfiles: address review feedback 2026-05-01 17:01:47 +03:00
Eyüp Can Akman
811593a1ee badfiles: respect import.quiet during import hook
The import hook prompted for input even when quiet mode was active, so
non-interactive imports blocked on the corrupt-file dialog. Return early
from `on_import_task_before_choice` when `import.quiet` is set so the
importer falls back to its summary judgment.
2026-05-01 17:01:47 +03:00
Sebastian Mohr
d6245835f2 test_discogs: Removed capture_log in favor for pytest caplog 2026-04-30 19:56:31 +02:00
Sebastian Mohr
a8db8931b7 test_playcount: Removed capture_log in favor for pytest caplog 2026-04-30 14:41:25 +02:00
Sebastian Mohr
9bae5b8fcb test_autobpm: Removed capture_log in favor for pytest caplog 2026-04-30 14:41:25 +02:00
Alok Saboo
e84ce4198a Revert unrelated docstring reformatting 2026-04-29 08:33:31 -04:00
Alok Saboo
f459edbbd4 Merge upstream master and fix changelog.rst
Sync with upstream beets/master and resolve changelog conflict,
keeping only the Spotify batch entry in the Unreleased section.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-04-28 21:12:30 -04:00
Eyüp Can Akman
88be3023bb lyrics: handle apostrophes in musixmatch slug
The musixmatch URL slug builder did not replace curly apostrophes
(U+2018, U+2019) before applying the whitespace-to-dash rule, so titles
like "If They're Shooting at You" produced a slug with the raw quote
preserved and the lookup failed.

Add a REPLACEMENTS entry that maps both curly quote codepoints to a
dash before the rest of the substitutions run.
2026-04-28 17:27:28 +03:00