blob: 1f2299fc94f69e538aedb702cb48d02d6f3162f4 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
|
import pytest
from pathlib import Path
import os
from solo_tool.solo_tool import SoloTool
from player_mock import Player as MockPlayer
@pytest.fixture
def mockPlayer():
return MockPlayer()
@pytest.fixture
def sessionPath(tmp_path):
path = tmp_path / "sessions"
os.mkdir(path)
return path
@pytest.fixture
def soloTool(mockPlayer):
return SoloTool(player=mockPlayer)
@pytest.fixture
def testSongs(tmp_path):
path = tmp_path / "songs"
os.mkdir(path)
songs = [
path / "test.flac",
path / "test.mp3",
path / "test.mp4"
]
for song in songs:
song.touch()
return songs
|