Sebastian Mohr
8de2a142ce
Fixed issue with mpdstats test and removed unregister_all function
...
as it introduces issues.
2025-09-17 20:55:02 +02:00
Sebastian Mohr
fba8e95228
Fixed typing issues.
2025-09-17 19:26:11 +02:00
Sebastian Mohr
21d07b41ff
Renamed PluginTestCase to PluginUnitTestCase
2025-09-17 19:18:48 +02:00
Sebastian Mohr
ad719d8668
Refactored most plugin tests to use pytest instead of unitest.
...
Also simplified test wherever possible.
2025-09-17 18:58:03 +02:00
neofright
394d78de97
Replace flowery language ( #6002 )
...
Simplify wording by replacing flowery or pretentious terms throughout the project.
A bouquet refers to trees or flowers. The etymology is pretty clear on
the Latin root via French.
Co-authored-by: Sebastian Mohr <sebastian@mohrenclan.de>
2025-09-15 09:02:22 +00:00
Šarūnas Nejus
3bc653b989
lyrics: xfail sweetslyrics end-to-end test
2025-08-30 23:10:22 +01:00
Šarūnas Nejus
44fda7ca0a
lyrics: use another beatles song for Lyricsmode
...
Lady Madonna apparently is gone from this website. ¯\_(ツ)_/¯
2025-08-30 23:10:22 +01:00
Šarūnas Nejus
d6b6ac3387
Replace logging f-strings with arguments
2025-08-30 23:10:21 +01:00
Šarūnas Nejus
d93ddf8dd4
Do not use explicit indices for logging args when not needed
2025-08-30 23:10:21 +01:00
Šarūnas Nejus
2fccf64efe
Do not use backslashes to deal with long strings
2025-08-30 23:10:20 +01:00
Šarūnas Nejus
1c16b2b308
Replace string concatenation (' + ')
...
- Join hardcoded strings
- Replace concatenated variables with f-strings
2025-08-30 23:10:15 +01:00
Šarūnas Nejus
a7c83d91e9
Replace slightly more advanced attempts to use format calls
2025-08-30 22:35:00 +01:00
Šarūnas Nejus
9352a79e41
Replace percent formatting
2025-08-30 22:35:00 +01:00
Šarūnas Nejus
4a361bd501
Replace format calls with f-strings
2025-08-30 18:42:26 +01:00
Sebastian Mohr
abffa7900b
Fixed tests as query formatting changed slightly.
2025-08-26 13:41:11 +02:00
J0J0 Todos
f85ba7ab3b
lastgenre: Fix test_get_genre loading whitelist
...
- The default whitelist files were not loaded properly (at least in
local test environments, not sure about CI yet...anyway...)
2025-08-24 09:20:36 +02:00
J0J0 Todos
7f7b900f1b
lastgenre: Test canonicalization
...
- Test non-whitelisted genres resolving "up" in the tree.
- Test whitelisted original and whitelisted new genre resolving "up"
- Test non-whitelisted original genre resolving "up" (and deduplication
works)
2025-08-24 09:20:36 +02:00
Šarūnas Nejus
c0675fefb8
Merge branch 'master' into multivalued-flexible-fields
2025-08-19 13:39:34 +01:00
Šarūnas Nejus
13080c17a3
Update release conversion logic accordingly
2025-08-10 16:25:05 +01:00
Šarūnas Nejus
2059a3a802
Move EventType definition to plugins.py and fix test_hook types
2025-08-09 15:44:35 +01:00
Šarūnas Nejus
54b31d01e9
Use only plugins/disabled_plugins config in plugin loading
2025-08-09 15:11:58 +01:00
Šarūnas Nejus
e9feb41709
Refactor plugin registration tests
2025-08-09 15:06:07 +01:00
Šarūnas Nejus
52bdb58a46
Simplify plugin loading mechanism
...
Centralise plugin loading in `beets.plugins` and refactor the plugin
loading system to be more straightforward and eliminate complex mocking
in tests. Replace the two-stage class collection and instantiation
process with direct instance creation and storage.
Add plugins.PluginImportError and adjust plugin import tests to only
complain about plugin import issues.
2025-08-09 15:06:06 +01:00
Šarūnas Nejus
788e31b619
Slightly simplify listener registration
2025-08-09 15:04:01 +01:00
Sebastian Mohr
c2d1bc3aaf
Add py.typed marker file to support PEP 561 typing ( #5906 )
...
Add `py.typed` marker file to support PEP 561 typing
This PR adds a `py.typed` marker file to the package directory to
indicate that the package includes inline type hints and is PEP 561
compliant.
2025-08-09 13:31:55 +02:00
Sebastian Mohr
3f23f35353
Removed duplicate importlib import.
2025-08-09 13:17:27 +02:00
Sebastian Mohr
84ae11657e
Added a check for gstream plugin issues on windows.
2025-08-09 13:17:27 +02:00
Sebastian Mohr
1696789cbe
Removed re and added brackets
2025-08-09 13:17:27 +02:00
Sebastian Mohr
a2136e1100
Removed now unused _is_spec_avilable function
2025-08-09 13:17:27 +02:00
Sebastian Mohr
8d134d1389
Skip module not found checks in favor for only running the test in
...
the ci.
2025-08-09 13:17:27 +02:00
Sebastian Mohr
586b89016b
Using fixture to unload plugins. Enhance comment. Simplified get available
...
plugins function.
2025-08-09 13:17:27 +02:00
Sebastian Mohr
8b0af15b83
Use load_plugins directly as the plugin mixin version wants
...
to create an instance which is not wanted here.
2025-08-09 13:17:27 +02:00
Sebastian Mohr
3a2b6d85a4
Using plugin mixin to unload plugins.
2025-08-09 13:17:27 +02:00
Sebastian Mohr
8aa298d646
Added module cleanup, might fix errors.
2025-08-09 13:17:27 +02:00
Sebastian Mohr
4723f3de7d
Instead of trying to import all plugins together, opted to test
...
one plugin at a time.
2025-08-09 13:17:27 +02:00
Sebastian Mohr
cfab2eb56e
Some typos
2025-08-09 13:17:27 +02:00
Sebastian Mohr
355e4d3fed
Added a load all plugins test.
2025-08-09 13:17:27 +02:00
Maxr1998
8db661b115
Add test
2025-07-16 21:46:03 +02:00
Š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
Šarūnas Nejus
e1162b7e0f
Rename test_player -> test_bpd
2025-07-16 14:06:35 +01:00
Šarūnas Nejus
a5bbe57490
Fix types in test_player
2025-07-16 14:06:34 +01:00
Šarūnas Nejus
21459c70ee
importer: provides search_ids into lookup_candidates explicitly
2025-07-16 14:06:33 +01:00
Sebastian Mohr
178e27f11f
Fixed imports for all tests and added a bit of stricter type checking.
2025-07-15 15:03:14 +02:00
Šarūnas Nejus
0dd6cb3b6d
Replace assert_equal_path
2025-07-09 09:21:52 +01:00
Šarūnas Nejus
ca3adfe525
Replace assertPrem
2025-07-09 09:21:52 +01:00
Šarūnas Nejus
8dcc69e6d8
Replace _assert_image_operated
2025-07-09 09:21:52 +01:00
Šarūnas Nejus
9f6d5063d1
Replace _assertImageIsValidArt
2025-07-09 09:21:51 +01:00
Šarūnas Nejus
72caf0d2cd
Replace assertCount
2025-07-09 09:21:51 +01:00
Šarūnas Nejus
111cb562ea
Replace assertContains and assertExcludes
2025-07-09 09:21:51 +01:00
Šarūnas Nejus
3c8179a762
Replace assertAlbumImport
2025-07-09 09:21:51 +01:00