From 7370cdfd39e0f4669b11247e5a3dbbe449bdfb36 Mon Sep 17 00:00:00 2001 From: Jesse Weinstein Date: Wed, 6 Jan 2016 01:34:52 -0800 Subject: [PATCH] Add test for backwards compat --- test/test_play.py | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/test/test_play.py b/test/test_play.py index 2c2c076de..d0371cf15 100644 --- a/test/test_play.py +++ b/test/test_play.py @@ -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")