From e6d46336b0ec6f7d621c1ba50293c226bcd17add Mon Sep 17 00:00:00 2001 From: kramsee Date: Sun, 15 Apr 2018 14:27:04 +0200 Subject: [PATCH] Update test for changed open_command call --- tests/test_pirate.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/test_pirate.py b/tests/test_pirate.py index 7ccbb03..ab41fd0 100755 --- a/tests/test_pirate.py +++ b/tests/test_pirate.py @@ -38,7 +38,7 @@ class TestPirate(unittest.TestCase): config = pirate.pirate.parse_config_file('') args = pirate.pirate.combine_configs(config, pirate.pirate.parse_args(['-0', 'term', '-C', 'blah %s'])) pirate.pirate.pirate_main(args) - mock_call.assert_called_once_with(['blah', 'dn=derp']) + mock_call.assert_called_once_with(['blah', 'dn=derp'], shell=True) @patch('pirate.pirate.builtins.input', return_value='0') @patch('subprocess.call') @@ -54,7 +54,7 @@ class TestPirate(unittest.TestCase): config = pirate.pirate.parse_config_file('') args = pirate.pirate.combine_configs(config, pirate.pirate.parse_args(['term', '-C', 'blah %s'])) pirate.pirate.pirate_main(args) - mock_call.assert_called_once_with(['blah', 'dn=derp']) + mock_call.assert_called_once_with(['blah', 'dn=derp'], shell=True) def test_parse_torrent_command(self): tests = [