Skip to content

Commit

Permalink
Fix Windows paths
Browse files Browse the repository at this point in the history
  • Loading branch information
kinuax committed May 7, 2024
1 parent dd97384 commit e7578fd
Showing 1 changed file with 1 addition and 24 deletions.
25 changes: 1 addition & 24 deletions tests/controllers/test_parser.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,30 +18,7 @@


@pytest.mark.parametrize("trackpath, length", [
(Path(f"/path/to/music/directory/Places/{place}/Genres/{genre}/Albums/{album}/{side}/{title}.mp3"), 5),
(Path(f"/path/to/music/directory/Places/{place}/Genres/{genre}/Albums/{album}/{title}.mp3"), 4),
(Path(f"/path/to/music/directory/Places/{place}/Genres/{genre}/{artist}/{album}/{side}/{title}.mp3"), 6),
(Path(f"/path/to/music/directory/Places/{place}/Genres/{genre}/{artist}/{album}/{title}.mp3"), 5),
(Path(f"/path/to/music/directory/Places/{place}/Genres/{genre}/{artist}/{title}.mp3"), 4),
(Path(f"/path/to/music/directory/Places/{place}/Genres/{genre}/{title}.mp3"), 3),
(Path(f"/path/to/music/directory/Places/{place}/Albums/{album}/{side}/{title}.mp3"), 4),
(Path(f"/path/to/music/directory/Places/{place}/Albums/{album}/{title}.mp3"), 3),
(Path(f"/path/to/music/directory/Places/{place}/{artist}/{album}/{side}/{title}.mp3"), 5),
(Path(f"/path/to/music/directory/Places/{place}/{artist}/{album}/{title}.mp3"), 4),
(Path(f"/path/to/music/directory/Places/{place}/{artist}/{title}.mp3"), 3),
(Path(f"/path/to/music/directory/Places/{place}/{title}.mp3"), 2),
(Path(f"/path/to/music/directory/Genres/{genre}/Albums/{album}/{side}/{title}.mp3"), 4),
(Path(f"/path/to/music/directory/Genres/{genre}/Albums/{album}/{title}.mp3"), 3),
(Path(f"/path/to/music/directory/Genres/{genre}/{artist}/{album}/{side}/{title}.mp3"), 5),
(Path(f"/path/to/music/directory/Genres/{genre}/{artist}/{album}/{title}.mp3"), 4),
(Path(f"/path/to/music/directory/Genres/{genre}/{artist}/{title}.mp3"), 3),
(Path(f"/path/to/music/directory/Genres/{genre}/{title}.mp3"), 2),
(Path(f"/path/to/music/directory/Albums/{album}/{side}/{title}.mp3"), 3),
(Path(f"/path/to/music/directory/Albums/{album}/{title}.mp3"), 2),
(Path(f"/path/to/music/directory/Artists/{artist}/{album}/{side}/{title}.mp3"), 4),
(Path(f"/path/to/music/directory/Artists/{artist}/{album}/{title}.mp3"), 3),
(Path(f"/path/to/music/directory/Artists/{artist}/{title}.mp3"), 2),
(Path(f"/path/to/music/directory/{title}.mp3"), 1),
(Path() / "path-to-music-directory" / "Places" / f"{place}" / "Genres" / f"{genre}" / "Albums" / f"{album}" / f"{side}" / f"{title}.mp3", 5),
])
def test_parse_path_fields_with_supported_trackpaths(
trackpath: Path,
Expand Down

0 comments on commit e7578fd

Please sign in to comment.