diff options
| author | Eddy Pedroni <epedroni@pm.me> | 2025-07-17 13:45:11 +0200 | 
|---|---|---|
| committer | Eddy Pedroni <epedroni@pm.me> | 2025-07-17 13:45:11 +0200 | 
| commit | 89dcddce5e215400150232befddebc83f45d64d8 (patch) | |
| tree | 428007ef8f728b86f3284d32b9e1bcb8e920ca43 /solo-tool-project/test | |
| parent | 878ed5d699597dfa197636efe67f38000b67fe7e (diff) | |
Remove songpool dependency from SoloTool
Diffstat (limited to 'solo-tool-project/test')
| -rw-r--r-- | solo-tool-project/test/fixtures.py | 4 | ||||
| -rw-r--r-- | solo-tool-project/test/solo_tool_songs_integrationtest.py | 7 | 
2 files changed, 2 insertions, 9 deletions
| diff --git a/solo-tool-project/test/fixtures.py b/solo-tool-project/test/fixtures.py index e63d363..3306388 100644 --- a/solo-tool-project/test/fixtures.py +++ b/solo-tool-project/test/fixtures.py @@ -22,8 +22,8 @@ def sessionPath(tmp_path):      return path  @pytest.fixture -def soloTool(mockPlayer, songPool): -    return SoloTool(songPool, player=mockPlayer) +def soloTool(mockPlayer): +    return SoloTool(player=mockPlayer)  @pytest.fixture  def testSongs(songPool): diff --git a/solo-tool-project/test/solo_tool_songs_integrationtest.py b/solo-tool-project/test/solo_tool_songs_integrationtest.py index 6030d19..0acfc2b 100644 --- a/solo-tool-project/test/solo_tool_songs_integrationtest.py +++ b/solo-tool-project/test/solo_tool_songs_integrationtest.py @@ -66,13 +66,6 @@ def test_songAdditionEdgeCases(uut, mockPlayer, testSongs):      assert mockPlayer.currentSong == testSongs[0]      assert uut.songs == testSongs -    # Songs must exist in the filesystem -    with pytest.raises(FileNotFoundError): -        uut.addSong("/not/a/real/file") -    assert uut.song == 0 -    assert mockPlayer.currentSong == testSongs[0] -    assert uut.songs == testSongs -  def test_songSelectionNotification(uut, testSongs):      selectionCalled = False      selectionValue = None | 
