mirror of
https://github.com/beetbox/beets.git
synced 2026-01-03 06:22:48 +01:00
Add test for backwards compat
This commit is contained in:
parent
d4ccc10667
commit
7370cdfd39
1 changed files with 9 additions and 0 deletions
|
|
@ -105,6 +105,15 @@ class PlayPluginTest(unittest.TestCase, TestHelper):
|
|||
|
||||
self.open_mock.assert_not_called()
|
||||
|
||||
def test_warning_threshold_backwards_compat(self):
|
||||
self.config['play']['warning_treshold'] = 1
|
||||
self.add_item(title='another NiceTitle')
|
||||
|
||||
with control_stdin("a"):
|
||||
self.run_command('play', 'nice')
|
||||
|
||||
self.open_mock.assert_not_called()
|
||||
|
||||
def test_command_failed(self):
|
||||
self.open_mock.side_effect = OSError("some reason")
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue