mirror of
https://github.com/vikstrous/pirate-get
synced 2025-01-10 10:04:21 +01:00
Update test for changed open_command call
This commit is contained in:
parent
4f5d4db154
commit
e6d46336b0
@ -38,7 +38,7 @@ class TestPirate(unittest.TestCase):
|
|||||||
config = pirate.pirate.parse_config_file('')
|
config = pirate.pirate.parse_config_file('')
|
||||||
args = pirate.pirate.combine_configs(config, pirate.pirate.parse_args(['-0', 'term', '-C', 'blah %s']))
|
args = pirate.pirate.combine_configs(config, pirate.pirate.parse_args(['-0', 'term', '-C', 'blah %s']))
|
||||||
pirate.pirate.pirate_main(args)
|
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('pirate.pirate.builtins.input', return_value='0')
|
||||||
@patch('subprocess.call')
|
@patch('subprocess.call')
|
||||||
@ -54,7 +54,7 @@ class TestPirate(unittest.TestCase):
|
|||||||
config = pirate.pirate.parse_config_file('')
|
config = pirate.pirate.parse_config_file('')
|
||||||
args = pirate.pirate.combine_configs(config, pirate.pirate.parse_args(['term', '-C', 'blah %s']))
|
args = pirate.pirate.combine_configs(config, pirate.pirate.parse_args(['term', '-C', 'blah %s']))
|
||||||
pirate.pirate.pirate_main(args)
|
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):
|
def test_parse_torrent_command(self):
|
||||||
tests = [
|
tests = [
|
||||||
|
Loading…
Reference in New Issue
Block a user