beets/test/plugins
henry 0bf248d355
Add custom feat words for ftintitle (#6090)
## Description

For non English tracks (Swedish in my case) feat. words might be
something that ftintitle doesn't pick up.
Eg. for the song `Promoe med Afasi - Inflation`
[https://musicbrainz.org/recording/8e236347-61d6-4e11-9980-52f4cc6b905f](https://musicbrainz.org/recording/8e236347-61d6-4e11-9980-52f4cc6b905f)
the word `med` is `feat.` in Swedish.
With this PR you can add what ever word you wish to match as feat. so it
should cover any kind of language.

The config.yaml could look like this:
ftintitle:
  custom_feat_words: ["med"]

## To Do

<!--
- If you believe one of below checkpoints is not required for the change
you
are submitting, cross it out and check the box nonetheless to let us
know.
  For example: - [x] ~Changelog~
- Regarding the changelog, often it makes sense to add your entry only
once
reviewing is finished. That way you might prevent conflicts from other
PR's in
that file, as well as keep the chance high your description fits with
the
  latest revision of your feature/fix.
- Regarding documentation, bugfixes often don't require additions to the
docs.
- Please remove the descriptive sentences in braces from the enumeration
below,
  which helps to unclutter your PR description.
-->

- [x] Documentation. (If you've added a new command-line flag, for
example, find the appropriate page under `docs/` to describe it.)
- [x] Changelog. (Add an entry to `docs/changelog.rst` to the bottom of
one of the lists near the top of the document.)
- [x] Tests. (Very much encouraged but not strictly required.)
2025-10-14 20:38:02 -07:00
..
utils Move vfs.py to beetsplug._utils package to avoid polluting core namespace (#6017) 2025-10-01 12:28:18 +02:00
__init__.py Correctly refactor tests 2023-10-17 19:39:03 +10:00
lyrics_pages.py lyrics: xfail sweetslyrics end-to-end test 2025-08-30 23:10:22 +01:00
test_acousticbrainz.py Reformat the codebase 2024-09-21 11:57:48 +01:00
test_advancedrewrite.py Update CI config, minimum ruff version, docs and add changelog note 2024-12-10 06:10:03 +00:00
test_albumtypes.py musicbrainz: synchronise plugin import path 2025-05-17 03:31:58 +01:00
test_art.py Replace string concatenation (' + ') 2025-08-30 23:10:15 +01:00
test_aura.py Use PEP585 lowercase collections typing annotations 2024-12-10 06:10:03 +00:00
test_autobpm.py Skip autobpm tests if librosa isn't available 2024-11-30 09:32:08 -04:00
test_bareasc.py Reformat the codebase 2024-09-21 11:57:48 +01:00
test_beatport.py Use unittest.TestCase for tests that don't require the dir setup 2025-05-26 12:40:38 +01:00
test_bpd.py Rename test_player -> test_bpd 2025-07-16 14:06:35 +01:00
test_bucket.py Future proof BucketPluginTest.test_year_single_year_last_folder 2024-12-27 16:28:38 -04:00
test_convert.py Replace format calls with f-strings 2025-08-30 18:42:26 +01:00
test_discogs.py Update configuration format. 2025-10-03 14:44:22 -07:00
test_edit.py Replace assertCount 2025-07-09 09:21:51 +01:00
test_embedart.py fix test by changing patch 2025-09-21 08:04:51 -07:00
test_embyupdate.py Fix formatting 2025-05-07 10:41:01 +01:00
test_export.py Reformat the codebase 2024-09-21 11:57:48 +01:00
test_fetchart.py Replace assertEqual 2024-08-12 08:43:42 +01:00
test_filefilter.py Reformat the codebase 2024-09-21 11:57:48 +01:00
test_fromfilename.py Refactor tests using pytest 2025-09-30 15:54:33 +02:00
test_ftintitle.py remove feat from custom_feat_words 2025-10-12 22:40:27 +02:00
test_hook.py Move EventType definition to plugins.py and fix test_hook types 2025-08-09 15:44:35 +01:00
test_ihate.py Replace assertFalse 2024-08-12 08:43:41 +01:00
test_importadded.py Replace string concatenation (' + ') 2025-08-30 23:10:15 +01:00
test_importfeeds.py Introduce TestHelper.temp_dir_path 2025-07-09 09:17:14 +01:00
test_info.py Replace assertEqual 2024-08-12 08:43:42 +01:00
test_ipfs.py Replace format calls with f-strings 2025-08-30 18:42:26 +01:00
test_keyfinder.py Replace assertEqual 2024-08-12 08:43:42 +01:00
test_lastgenre.py lastgenre: Also mock try_write in test_pretend.. 2025-09-21 07:07:14 +02:00
test_limit.py Replace string concatenation (' + ') 2025-08-30 23:10:15 +01:00
test_lyrics.py fix local langdetect test failures 2025-05-31 18:56:21 -04:00
test_mbsubmit.py Centralize AutotagStub test setup into AutotagImportTestCase 2025-05-17 03:31:58 +01:00
test_mbsync.py Fixed imports for all tests and added a bit of stricter type checking. 2025-07-15 15:03:14 +02:00
test_mpdstats.py Do not use explicit indices for logging args when not needed 2025-08-30 23:10:21 +01:00
test_musicbrainz.py Replace string concatenation (' + ') 2025-08-30 23:10:15 +01:00
test_parentwork.py Do not use backslashes to deal with long strings 2025-08-30 23:10:20 +01:00
test_permissions.py Replace assertPrem 2025-07-09 09:21:52 +01:00
test_play.py Replace string concatenation (' + ') 2025-08-30 23:10:15 +01:00
test_playlist.py Replace string concatenation (' + ') 2025-08-30 23:10:15 +01:00
test_plexupdate.py Replace string concatenation (' + ') 2025-08-30 23:10:15 +01:00
test_plugin_mediafield.py Replace string concatenation (' + ') 2025-08-30 23:10:15 +01:00
test_random.py Replace format calls with f-strings 2025-08-30 18:42:26 +01:00
test_replace.py Feat: Add replace plugin (#5644) 2025-05-27 00:17:52 +02:00
test_replaygain.py Replace format calls with f-strings 2025-08-30 18:42:26 +01:00
test_scrub.py Move scrub test to a separate file 2025-05-17 03:32:00 +01:00
test_smartplaylist.py Replace string concatenation (' + ') 2025-08-30 23:10:15 +01:00
test_spotify.py Spotify tests are now consistent with quote change 2025-09-27 13:22:41 +02:00
test_subsonicupdate.py Use unittest.TestCase for tests that don't require the dir setup 2025-05-26 12:40:38 +01:00
test_substitute.py Replace string concatenation (' + ') 2025-08-30 23:10:15 +01:00
test_the.py Use unittest.TestCase for tests that don't require the dir setup 2025-05-26 12:40:38 +01:00
test_thumbnails.py Remove no-op decargs 2025-07-08 11:37:33 +01:00
test_types_plugin.py refactor: convert _types from class attributes to cached properties 2025-07-16 14:45:25 +01:00
test_web.py Replace string concatenation (' + ') 2025-08-30 23:10:15 +01:00
test_zero.py Add back tests as they were. 2025-10-14 03:17:34 +01:00