Commit Graph

820 Commits

Author SHA1 Message Date
Blake Hakkila
05ecfc8bc6 Merge branch 'master' into rest-directory-config 2026-06-19 15:18:28 -07:00
Alok Saboo
4e60f86dae Merge branch 'master' into tidal 2026-06-19 09:42:54 -04:00
Trey Turner
c1de81d59c fix(ftintitle): parenthetical features 2026-06-18 19:47:43 -05:00
Blake Hakkila
6080faf5dc Merge branch 'master' into rest-directory-config 2026-06-17 16:07:18 -07:00
Alok Saboo
027f688007 Merge branch 'master' into tidal 2026-06-17 14:06:35 -04:00
Šarūnas Nejus
f3550d3c96 Remove some unused test defs 2026-06-17 18:56:27 +01:00
Šarūnas Nejus
132cd55e21 Remove unused plugin test helpers
- Dropped unused MusicBrainZ and Subsonic test helpers and imports.
- Keeps plugin test modules focused on the behavior they still exercise.
2026-06-17 18:56:27 +01:00
Šarūnas Nejus
00501d3d7a Define class_helper, module_helper, session_helper fixtures 2026-06-17 18:56:27 +01:00
Šarūnas Nejus
931a9b6345 Tidy up existing helper fixtures 2026-06-17 18:56:27 +01:00
Šarūnas Nejus
2c2530dcfd Refactor plugin import test setup
- Replace duplicate pytest import helper fixtures with PluginMixin-based setup
  helpers.
- Keep plugin import tests aligned with shared beets setup behavior.
2026-06-17 18:56:27 +01:00
Šarūnas Nejus
1d9ff50608 Refactor plugin tests to use shared helpers
- Replace local setup fixtures with existing test helper base classes to reduce
  duplicated test setup.
2026-06-17 18:56:27 +01:00
Alok Saboo
904839106c address reviewer comments 2026-06-17 11:47:01 -04:00
Alok Saboo
d855dbf55b lint issues 2026-06-17 10:31:24 -04:00
Alok Saboo
dcd54146d8 address reviewer comments 2026-06-17 09:45:02 -04:00
Blake Hakkila
478ac8cb63 lyrics: add rest_directory configuration option 2026-06-15 22:48:00 -07:00
Alok Saboo
ab2a9ced63 Apply ruff formatting 2026-06-15 17:24:01 -04:00
Alok Saboo
5904dc280a Fix id_field, update tests, fix flake8 2026-06-15 17:08:34 -04:00
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