747 Commits

Author SHA1 Message Date
Alok Saboo
4cd996cc0e apply ruff formatting 2026-06-15 13:18:15 -04:00
Alok Saboo
4a0b2beeef address reviewer comments: simplify _parse_popularity, fix flake8 E501 2026-06-15 13:00:59 -04:00
Alok Saboo
a6bf76b232 address reviewer comments: type _parse_popularity with attributes, add album popularity to sync 2026-06-15 11:38:12 -04:00
Alok Saboo
2f434b2b93 address reviewer comments 2026-06-15 09:45:35 -04:00
Alok Saboo
bed1f024b0 Fix tests and mypy error
- Use self.add_item() instead of self.lib.add_item() in tests
- Fix mypy: add isinstance(val, int) check in _popularity()
- Apply ruff formatting
2026-06-14 16:36:19 -04:00
Alok Saboo
71d09893ef fix tests 2026-06-14 15:59:25 -04:00
Alok Saboo
98681406af tidal: add flexattrs and tidalsync command
- Add item_types ClassVar with tidal_track_id, tidal_album_id,
  tidal_artist_id, tidal_track_popularity, tidal_alb_popularity,
  tidal_updated fields
- Populate flexattrs during album/track import via AlbumInfo/TrackInfo
  kwargs
- Add beet tidalsync command to refresh popularity data post-import
- Add tidal fields to REIMPORT_FRESH_FIELDS_ITEM for reimport support
- Add tests for flexattr population and tidalsync behavior
- Update tidal plugin docs with attribute reference and tidalsync usage
2026-06-14 13:44:16 -04:00
Šarūnas Nejus
3b9034e8cf Only skip tests not in CI 2026-06-13 01:46:44 +01:00
Šarūnas Nejus
912ab791d9 Exclude tests that depend on ffprobe when unavailable 2026-06-13 01:46:44 +01:00
Šarūnas Nejus
4f3ac5a40a Exclude artresizer tests when unavailable 2026-06-13 01:46:44 +01:00
Šarūnas Nejus
949f987368 Exclude chroma tests when unimportable 2026-06-13 01:46:44 +01:00
Sebastian Mohr
7636022cb2 scrub: ImportTestCase -> ImporterHelper 2026-06-11 10:39:14 +02:00
Sebastian Mohr
500bad329c permissions: ImportTestCase -> ImporterHelper 2026-06-11 10:39:14 +02:00
Sebastian Mohr
86de25a352 keyfinder: ImportTestCase -> ImporterHelper 2026-06-11 10:39:14 +02:00
Sebastian Mohr
a368803443 replaygain: ImportTestCase -> ImportHelper 2026-06-11 10:39:14 +02:00
Sebastian Mohr
c300dd24ce filefilter: ImportTestCase -> ImportHelper and fixture based setup 2026-06-11 10:39:14 +02:00
Sebastian Mohr
7a894fc532 chroma: ImportTestCase -> ImportHelper 2026-06-11 10:39:14 +02:00
Tsuizxgo
1d0a7ae6df Merge latest master into replace callback fix 2026-06-09 16:12:26 +08:00
Zixuan Cui
351e49c43f Merge branch 'master' into fix-replace-command-signature 2026-06-09 15:25:18 +08:00
Zixuan Cui
42d3fe0038 Merge branch 'master' into fix-mpdstats-cli-host 2026-06-09 15:24:12 +08:00
Šarūnas Nejus
648f24cbc2 Enable and fix flake8-builtins 2026-06-09 00:14:06 +01:00
Šarūnas Nejus
d53ee774a9 Enable and fix flake8-return 2026-06-09 00:14:06 +01:00
Šarūnas Nejus
5be035f49d Enable and fix flake8-pie 2026-06-09 00:14:06 +01:00
Šarūnas Nejus
e5ed730742 Remove overly long parametrize names
I've been seeing Codecov errors when attempting to submit our test
results in the CI. I investigated and found that it has a limit on test
name length. I found that the full parametrized name of
`test_parse_featured_artists` had been failing all our test results
uploads.

When IDs are not defined in `pytest.mark.parametrize` test cases, pytest
uses the entire parameter definition as its name.

Therefore:
- Remove parametrisation from discogs tests where we have a single test
  case each.
- Define IDs in test_get_genre.
2026-06-06 10:11:02 +01:00
Šarūnas Nejus
80c347968c Enable bpd plugin coverage 2026-06-04 12:57:19 +01:00
Šarūnas Nejus
28c290584c Remove ConvertMixin 2026-06-04 03:04:33 +01:00
Šarūnas Nejus
d5e42b4652 Remove shell_quote func 2026-06-04 03:01:56 +01:00
Šarūnas Nejus
0217cc35d2 Parametrize never_convert_lossy_files transcode tests
- Consolidate the lossy and lossless convert cases into one focused parametrized
  test.
- Cover both enabled and disabled flag behavior for lossless sources while
  preserving the lossy conversion assertions.
2026-06-04 02:48:21 +01:00
Šarūnas Nejus
417b8b067d Create test_force_overrides 2026-06-04 02:47:02 +01:00
Šarūnas Nejus
7369da9e0b Remove unused function 2026-06-03 22:19:03 +01:00
Šarūnas Nejus
77890b431d Test playlist entry using parametrize 2026-06-03 22:19:03 +01:00
Šarūnas Nejus
772ef8a09f Test transcode using parametrize 2026-06-03 22:19:03 +01:00
Šarūnas Nejus
17ad1f96b8 Use filepath.suffix 2026-06-03 22:19:03 +01:00
Šarūnas Nejus
c6d51ba9fe Share convert_dest between tests 2026-06-03 22:19:02 +01:00
Sebastian Mohr
c60131e858 Replaced original setUp functions with setup_beets 2026-06-03 23:02:27 +02:00
Šarūnas Nejus
76df165f51 Remove setup arg from fixtures that do not need it 2026-06-03 21:43:41 +01:00
Sebastian Mohr
3e504b2067 NeverConvertLossyFilesTest -> TestNeverConvertLossyFiles
Also import cleanup.
2026-06-03 20:53:08 +02:00
Sebastian Mohr
49f57da73f ConvertCliTest -> TestConvertCli 2026-06-03 20:53:08 +02:00
Sebastian Mohr
f1a4b22ce5 ImportConvertTest -> TestImportConvert
Renamed AsIsImporterMixin to AsIsImporterHelper
2026-06-03 20:52:58 +02:00
Sebastian Mohr
dab112b45b Use PytestPluginTestHelper for TestNoConvert. 2026-06-03 19:55:51 +02:00
Šarūnas Nejus
5804a21620 Fix autobpm tests 2026-06-03 18:00:46 +01:00
Šarūnas Nejus
ca8544d4bc Fix ftintitle tests 2026-06-03 18:00:46 +01:00
Šarūnas Nejus
544ea3af5d Fix mbcollection tests 2026-06-03 18:00:46 +01:00
Šarūnas Nejus
7bad226c33 Add setup fixture to TestHelper 2026-06-03 18:00:46 +01:00
Šarūnas Nejus
fb9de7a619 lyrics: fix musica parsing 2026-06-03 15:42:19 +01:00
Šarūnas Nejus
29580d2f00 Import everything from parent beets.autotag 2026-06-02 08:57:35 +01:00
Tsuizxgo
d06774b14d Fix replace command callback signature 2026-06-02 00:02:10 +08:00
Tsuizxgo
cf7c5e4eb2 Fix mpdstats CLI option overrides 2026-06-01 23:57:07 +08:00
Alok Saboo
672addeff4 remove capture_log 2026-06-01 10:46:57 +02:00
Alok Saboo
b7b2449371 simplify test 2026-06-01 10:46:57 +02:00