Commit Graph
893 Commits
Author SHA1 Message Date
Š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
Alok Saboo a333b307e3 remove optional test 2026-06-01 10:46:57 +02:00
Alok Saboo 4b554e9697 Batch SQLite commits and follow write-before-store pattern 2026-06-01 10:46:57 +02:00
Pieter Lenaerts 3b826bd14a Fix lint errors
Unused import

yield without cleanup.

Line lengths - revert part of last commit basically...
2026-05-31 06:43:32 +01:00
Pieter Lenaerts 42a10f494e Add reference to commit fixing CVE 2026-05-31 06:43:32 +01:00
Pieter Lenaerts eedc71b414 Refactor to pytest and PluginMixin, merge into test_web.py 2026-05-31 06:43:32 +01:00
Pieter Lenaerts d500af6bfe One more too long line in test_web_xss.py 2026-05-31 06:43:32 +01:00
Pieter Lenaerts 8cdedf8794 Fix formatting in test/plugins/test_web_xss.py 2026-05-31 06:43:32 +01:00
Pieter Lenaerts 873045ee72 Test for unsafe input fields in web UI against XSS
Try to prevent GHSA-3gxm-wfjx-m847 from happening again.
2026-05-31 06:43:32 +01:00
Šarūnas Nejus 893df40534 Merge branch 'master' into fix/fetchart-permission-error-graceful 2026-05-29 17:33:13 +01:00
David Logie 621a401226 Simplify test. 2026-05-29 17:25:00 +01:00