diff options
author | Eddy Pedroni <eddy@0xf7.com> | 2021-12-25 23:47:00 +0100 |
---|---|---|
committer | Eddy Pedroni <eddy@0xf7.com> | 2021-12-25 23:47:00 +0100 |
commit | 10aa8140b5e52cc0cf8cea794daf81fb0ffdcad3 (patch) | |
tree | 9bf5e9231ff703b90ed0dd6790588de95d14c2b9 /solo_tool_integrationtest.py | |
parent | 71593d438dff1a54986c94b469faa31c4581f6c7 (diff) |
Renamed some functions, added known issue
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] |