beets/test
Šarūnas Nejus 0d6393e712
Fix track matching
I had previously tested the `munkres` -> `lapjv` replacement
extensively, so I was today surprised to find that nothing gets matched
correctly when I tried importing some new tracks.

On the other hand I now remember making a small adjustment in the logic
to make autotagging tests pass which is when I introduced a bug: I did
not realize that `lapjv` returns index '-1' for each unmatched item.

This issue did not get caught by tests because this 'unmatched' item
index '-1' anecdotally ended up pointing to the last (expected) item in
the test making it pass.

This commit adjusts the aforementioned test to catch this issue and
fixes the logic to correctly identify unmatched tracks.
2024-12-31 00:08:10 +00:00
..
plugins Move imports required for typing under the TYPE_CHECKING block 2024-12-10 06:10:04 +00:00
rsrc Update Tekstowo backend to fetch lyrics directly 2024-10-12 02:14:18 +01:00
__init__.py Remove unused imports 2021-08-26 20:59:48 +10:00
conftest.py Introduce integration_test marker and update testing docs 2024-09-21 13:26:05 +01:00
test_art_resize.py Reformat the codebase 2024-09-21 11:57:48 +01:00
test_autotag.py Fix track matching 2024-12-31 00:08:10 +00: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 Remove some lint exclusions and fix the issues 2024-09-21 11:59:19 +01:00
test_dbcore.py Reformat the codebase 2024-09-21 11:57:48 +01:00
test_files.py Clarify test_unsuccessful_reflink error message 2024-09-05 04:32:13 +01:00
test_hidden.py Reformat the codebase 2024-09-21 11:57:48 +01:00
test_importer.py fix #4840 and add to test case 2024-11-06 23:14:47 -05:00
test_library.py Remove _common.album and use Album instead 2024-10-16 12:37:22 +01:00
test_logging.py Fix lint issues 2024-09-21 11:59:18 +01:00
test_m3ufile.py Reformat the codebase 2024-09-21 11:57:48 +01:00
test_mb.py Make this test ignore my local beets config 2024-08-12 08:49:30 +01:00
test_metasync.py Reformat the codebase 2024-09-21 11:57:48 +01:00
test_pipeline.py Fix lint issues 2024-09-21 11:59:18 +01:00
test_plugins.py Fix lint issues 2024-09-21 11:59:18 +01:00
test_query.py Remove some lint exclusions and fix the issues 2024-09-21 11:59:19 +01:00
test_sort.py Remove _common.album and use Album instead 2024-10-16 12:37:22 +01:00
test_template.py Reformat the codebase 2024-09-21 11:57:48 +01:00
test_ui.py Fix lint issues 2024-09-21 11:59:18 +01:00
test_ui_commands.py Fix lint issues 2024-09-21 11:59:18 +01:00
test_ui_importer.py Fix lint issues 2024-09-21 11:59:18 +01:00
test_ui_init.py Reformat the codebase 2024-09-21 11:57:48 +01:00
test_util.py Reformat the codebase 2024-09-21 11:57:48 +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