Šarūnas Nejus
6e9720af68
Replace memoryview with bytes
2026-09-01 14:58:27 +01:00
Šarūnas Nejus
b2f52ac124
Remove syspath
2026-07-30 12:18:49 +01:00
Šarūnas Nejus
951e32a852
Use pathlib.Path wherever possible in tests
2026-07-30 12:18:49 +01:00
Šarūnas Nejus
04c2304879
Replace item.path with item.filepath in tests
2026-07-30 12:18:49 +01:00
Šarūnas Nejus
02a2c5700a
Make RSRC a pathlib.Path
2026-07-24 17:03:57 +01:00
Šarūnas Nejus
d24c0d341e
Rename PathsMixin.temp_dir_path to PathsMixin.temp_path for consistency
2026-07-21 11:15:25 +01:00
Šarūnas Nejus
2e9ace7b20
Replace PathsMixin.temp_dir attribute with PathsMixin.temp_dir_path
2026-07-21 11:15:25 +01:00
Šarūnas Nejus
dc2826fa4b
Replace TestHelper.libdir attribute with TestHelper.lib_path
2026-07-21 11:15:25 +01:00
Šarūnas Nejus
230bf19c7f
Remove redundant test logic exposed by full coverage
...
- Removing the coverage omit configuration exposed unused branches, helpers, and
fixtures across the test suite.
- Delete that redundant logic and simplify affected tests while preserving their
behavior.
2026-07-07 15:57:35 +01:00
Šarūnas Nejus
8968648341
Update asciification tests
2026-07-03 18:59:19 +01:00
Šarūnas Nejus
89a831613a
Centralize path asciification normalization
...
- Move Unicode normalization and separator replacement into util.asciify_path.
- Update library callers and relocate focused asciify tests to util coverage.
2026-07-03 18:59:19 +01:00
Sebastian Mohr
54a2bd20e1
Removed This file is part of beets... headers.
2026-06-29 11:20:15 +02:00
Alexsandro Thomas
130eb1bbce
fixup! fix(library): don't propagate album artpath to items
2026-06-24 09:06:33 +02:00
Alexsandro Thomas
6360e70efb
fix(library): don't propagate album artpath to items
...
Album.store(inherit=True) copied artpath onto items as a flexible
attribute, defeating its exclusion from item_keys and persisting it as
an absolute path that bypasses relative-path storage. Skip fixed album
fields that aren't inheritable instead of treating them as flex attrs.
2026-06-23 23:37:07 +02:00
Šarūnas Nejus
7bad226c33
Add setup fixture to TestHelper
2026-06-03 18:00:46 +01:00
Sebastian Mohr
0c42b34c62
Added git blame ignore rev entry and formatting.
2026-06-01 19:41:51 +02:00
Sebastian Mohr
c6dc99f565
Remove i = with item = for consistency.
2026-06-01 19:41:51 +02:00
Sebastian Mohr
d226a930fe
TestItemRead: Aligned with PytestItemHelper
2026-06-01 19:41:51 +02:00
Sebastian Mohr
be0eb1439b
TestPathString: Use get_first_item helper function. Also consistency
...
renaming i -> item
2026-06-01 19:41:51 +02:00
Sebastian Mohr
c37ae7fe6e
TestAlbumInfo: Renamed item fixture to item_in_album, should reflect intend
...
more closely.
2026-06-01 19:41:51 +02:00
Sebastian Mohr
50ca216881
Removed self.i in favor of more pytest like item and item_in_db fixtures.
2026-06-01 19:41:51 +02:00
Sebastian Mohr
fda0a68d35
Fixed teardown logic and removed unnecessary imports.
2026-06-01 19:41:51 +02:00
Sebastian Mohr
27f4092fdb
TemplateTest -> TemplateTest
2026-06-01 19:41:51 +02:00
Sebastian Mohr
a7a789d9ee
UnicodePathTest -> TestUnicodePath
2026-06-01 19:41:51 +02:00
Sebastian Mohr
31248cb813
ItemPruneDirsClutterTest -> TestItemPruneDirsClutter
2026-06-01 19:41:51 +02:00
Sebastian Mohr
870a236b53
FilesizeTest -> TestFilesize
2026-06-01 19:41:51 +02:00
Sebastian Mohr
69fdf15e9f
WriteTest -> TestWrite, ItemReadTest -> TestItemRead, ItemReadGenreTest -> TestItemReadGenre
2026-06-01 19:41:51 +02:00
Sebastian Mohr
d67263408e
ImportTimeTest -> TestImportTime
2026-06-01 19:41:51 +02:00
Sebastian Mohr
075b230266
MtimeTest -> TestMtime
2026-06-01 19:41:51 +02:00
Sebastian Mohr
2897df99a9
PathStringTest -> TestPathString
2026-06-01 19:41:51 +02:00
Sebastian Mohr
f91f6b849a
ArtDestinationTest -> TestArtDestination
2026-06-01 19:41:51 +02:00
Sebastian Mohr
3dfbcb26e0
AlbumInfoTest -> TestAlbumInfo
2026-06-01 19:41:51 +02:00
Sebastian Mohr
6fc1d34c9a
PluginDestinationTest -> TestPluginDestination
2026-06-01 19:41:51 +02:00
Sebastian Mohr
016445d851
SingletonDisambiguationTest -> TestSingletonDisambiguation
2026-06-01 19:41:51 +02:00
Sebastian Mohr
d3892b81e9
DisambiguationTest -> TestDisambiguation
2026-06-01 19:41:51 +02:00
Sebastian Mohr
3e967a93bf
DestinationFunctionTest -> TestDestinationFunction
2026-06-01 19:41:51 +02:00
Sebastian Mohr
02bee3a468
ItemFormattedMappingTest -> TestItemFormattedMapping
2026-06-01 19:41:51 +02:00
Sebastian Mohr
c9249464cb
ParseQueryTest -> TestParseQuery
2026-06-01 19:41:51 +02:00
Sebastian Mohr
733249912a
DestinationTest -> TestDestination
2026-06-01 19:41:51 +02:00
Sebastian Mohr
eef0fefbd9
GetSetTest -> TestGetSet
2026-06-01 19:41:51 +02:00
Sebastian Mohr
b3ed48e1b5
RemoveTest -> TestRemove
2026-06-01 19:41:51 +02:00
Sebastian Mohr
a46bb52168
AddTest -> TestAdd:
...
Also PytestItemHelper for item fixture without db binding.
2026-06-01 19:41:51 +02:00
Sebastian Mohr
8368d0a6c1
StoreTest -> TestStore
2026-06-01 19:41:51 +02:00
Sebastian Mohr
9db2860877
LoadTest -> TestLoad:
...
Also introduced PytestItemInDBHelper for item fixture.
2026-06-01 19:41:51 +02:00
Šarūnas Nejus
28321bd3e6
Remove default path_formats value only used in tests
...
Ensure that path_formats is set in relevant tests to avoid reliance on
defaults and to clarify test intent. Update Library constructor type hint for
path_formats to use Template type.
This default value was only relevant in tests.
2026-05-24 15:09:58 +01:00
Eyüp Can Akman
6e6fee93bf
library: include path and reason in ReadError/WriteError messages
...
ReadError and WriteError formatted the super() proxy in their f-string, so file read and write failures lost the path and reason.
Use super().__str__() to return the FileOperationError message.
2026-05-24 00:25:50 +01:00
Sebastian Mohr
adfb73b66d
Run ruff format
2026-05-20 16:53:06 +02:00
oxms16
c9e6d0f84c
Fix path queries for multi-valued fields
2026-05-14 12:26:48 +08:00
Multipixelone
d8f1ee7508
test(library): ensure clutter config works properly
2026-04-17 21:55:11 +01:00
Šarūnas Nejus
a461ccb037
Normalise Windows paths
2026-04-11 13:18:58 +01:00