1
0
mirror of https://github.com/vikstrous/pirate-get synced 2025-01-09 09:59:51 +01:00

Update test for changed open_command call

This commit is contained in:
kramsee 2018-04-15 14:27:04 +02:00 committed by GitHub
parent 4f5d4db154
commit e6d46336b0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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 = [