diff options
Diffstat (limited to 'solo_tool_integrationtest.py')
-rw-r--r-- | solo_tool_integrationtest.py | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/solo_tool_integrationtest.py b/solo_tool_integrationtest.py index 22e8143..2a2bd46 100644 --- a/solo_tool_integrationtest.py +++ b/solo_tool_integrationtest.py @@ -96,8 +96,8 @@ def test_addAndSetAbLimits(): uut.addSong(song) uut.setSong(0) - uut.addAbLimit(abLimits[0][0], abLimits[0][1]) - uut.addAbLimit(abLimits[1][0], abLimits[1][1]) + uut.storeAbLimits(abLimits[0][0], abLimits[0][1]) + uut.storeAbLimits(abLimits[1][0], abLimits[1][1]) mockPlayer.position = 0.0 uut.tick() @@ -145,7 +145,7 @@ def test_multipleSongsAndAbLimits(): for i, l in enumerate(abLimits): uut.setSong(i) - uut.addAbLimit(l[0], l[1]) + uut.storeAbLimits(l[0], l[1]) uut.setAbLimitEnable(True) @@ -161,7 +161,7 @@ def test_multipleSongsAndAbLimits(): uut.tick() assert mockPlayer.position == l[0] -def test_addAbLimitWithoutSong(): +def test_storeAbLimitsWithoutSong(): song = "test.flac" abLimit = [0.2, 0.4] overflow = abLimit[1] + 0.1 @@ -170,7 +170,7 @@ def test_addAbLimitWithoutSong(): mockPlayer.position = overflow uut.setAbLimitEnable(True) - uut.addAbLimit(abLimit[0], abLimit[1]) + uut.storeAbLimits(abLimit[0], abLimit[1]) uut.tick() assert mockPlayer.position == overflow @@ -194,7 +194,7 @@ def test_addAbLimitWithoutSong(): uut.tick() assert mockPlayer.position == overflow - uut.addAbLimit(abLimit[0], abLimit[1]) + uut.storeAbLimits(abLimit[0], abLimit[1]) uut.tick() assert mockPlayer.position == overflow @@ -250,7 +250,7 @@ def test_getters(): uut.addSong(song) uut.setSong(0) - uut.addAbLimit(abLimit[0], abLimit[1]) + uut.storeAbLimits(abLimit[0], abLimit[1]) assert uut.getSongs() == [song] |