Move patch one level up because importlib brakes all the CI tools.
This commit is contained in:
@ -74,19 +74,19 @@ def test_run_path(runner, capsys):
|
|||||||
@all_runners
|
@all_runners
|
||||||
def test_install_requirements_for_dir(runner):
|
def test_install_requirements_for_dir(runner):
|
||||||
dirname = get_examples_path('types')
|
dirname = get_examples_path('types')
|
||||||
with patch('pip.main') as pip_mock:
|
with patch('bonobo.commands.run._install_requirements') as install_mock:
|
||||||
runner('run', '--install', dirname)
|
runner('run', '--install', dirname)
|
||||||
pip_mock.assert_called_once_with(
|
install_mock.assert_called_once_with(
|
||||||
['install', '-r', os.path.join(dirname, 'requirements.txt')])
|
os.path.join(dirname, 'requirements.txt'))
|
||||||
|
|
||||||
|
|
||||||
@all_runners
|
@all_runners
|
||||||
def test_install_requirements_for_file(runner):
|
def test_install_requirements_for_file(runner):
|
||||||
dirname = get_examples_path('types')
|
dirname = get_examples_path('types')
|
||||||
with patch('pip.main') as pip_mock:
|
with patch('bonobo.commands.run._install_requirements') as install_mock:
|
||||||
runner('run', '--install', os.path.join(dirname, 'strings.py'))
|
runner('run', '--install', os.path.join(dirname, 'strings.py'))
|
||||||
pip_mock.assert_called_once_with(
|
install_mock.assert_called_once_with(
|
||||||
['install', '-r', os.path.join(dirname, 'requirements.txt')])
|
os.path.join(dirname, 'requirements.txt'))
|
||||||
|
|
||||||
|
|
||||||
@all_runners
|
@all_runners
|
||||||
|
|||||||
Reference in New Issue
Block a user