From 10aa8140b5e52cc0cf8cea794daf81fb0ffdcad3 Mon Sep 17 00:00:00 2001 From: Eddy Pedroni Date: Sat, 25 Dec 2021 23:47:00 +0100 Subject: Renamed some functions, added known issue --- solo_tool_integrationtest.py | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) (limited to 'solo_tool_integrationtest.py') 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] -- cgit v1.2.3