beets/test
Šarūnas Nejus 3be4a89aee
refactor: convert _types from class attributes to cached properties
Convert static _types dictionaries to dynamic cached class properties to
enable proper plugin type inheritance and avoid mutating shared state.

Key changes:
- Replace static _types dicts with @cached_classproperty decorators
- Update cached_classproperty to support proper caching with class names
- Remove manual _types mutation in plugin loading/unloading
- Add pluginload event and cache clearing for proper plugin integration
- Fix test to trigger type checking during item creation

This ensures plugin types are properly inherited through the class
hierarchy and eliminates issues with shared mutable state between
test runs.
2025-07-16 14:45:25 +01:00
..
autotag Rewrite distance tests 2025-05-31 19:17:43 +01:00
plugins refactor: convert _types from class attributes to cached properties 2025-07-16 14:45:25 +01:00
rsrc Fix: Spotify plugin unable to recognize Chinese and Japanese albums. (#5705) 2025-07-01 11:08:54 +02:00
util Move human formatting functions under beets.util.units 2025-07-06 16:09:50 +01:00
__init__.py Remove unused imports 2021-08-26 20:59:48 +10:00
conftest.py Refactor test_query 2025-07-06 16:15:30 +01:00
test_art_resize.py Replace assertExists and assertNotExist 2025-07-09 09:21:49 +01:00
test_autotag.py Move distance to a separate module 2025-05-31 19:17:43 +01:00
test_config_command.py Update CI config, minimum ruff version, docs and add changelog note 2024-12-10 06:10:03 +00:00
test_datequery.py Replace assertContains and assertExcludes 2025-07-09 09:21:51 +01:00
test_dbcore.py Allow to pickle db models by removing the current connection. (#5641) 2025-04-15 11:43:36 +02:00
test_files.py Replace assertIsDir 2025-07-09 09:21:50 +01:00
test_hidden.py Fix duplicate database change event send on Library.add (#5561) 2025-05-30 13:41:29 +00:00
test_importer.py importer: provides search_ids into lookup_candidates explicitly 2025-07-16 14:06:33 +01:00
test_library.py Introduce TestHelper.temp_dir_path 2025-07-09 09:17:14 +01:00
test_logging.py Use unittest.TestCase for tests that don't require the dir setup 2025-05-26 12:40:38 +01:00
test_m3ufile.py Reformat the codebase 2024-09-21 11:57:48 +01:00
test_metasync.py Reformat the codebase 2024-09-21 11:57:48 +01:00
test_pipeline.py pipeline: remove old tests, integrate with out test suite 2025-05-06 14:51:20 +02:00
test_plugins.py Move sanitize_pairs/choices from plugins to util module 2025-05-31 17:55:41 +01:00
test_query.py Refactor test_query 2025-07-06 16:15:30 +01:00
test_release.py Fix release formatting for new versions of pandoc 2025-01-13 05:21:01 +00:00
test_sort.py Use unittest.TestCase for tests that don't require the dir setup 2025-05-26 12:40:38 +01:00
test_template.py Fix formatting 2025-05-07 10:41:01 +01:00
test_types.py Add NullPathType and types to PathType 2025-07-06 16:09:49 +01:00
test_ui.py Fixed imports for all tests and added a bit of stricter type checking. 2025-07-15 15:03:14 +02:00
test_ui_commands.py Rip away io stuff from TestHelper to IOMixin 2025-07-09 09:17:13 +01:00
test_ui_importer.py Fix lint issues 2024-09-21 11:59:18 +01:00
test_ui_init.py Speed up tests that only need IOMixin 2025-07-09 09:17:13 +01:00
test_util.py Simplify and speed up plurality/album tags retrieval tests 2025-05-31 19:17:42 +01:00
test_vfs.py Reformat the codebase 2024-09-21 11:57:48 +01:00
testall.py Remove def suite TestLoader definitions 2024-07-28 18:58:51 +01:00