You've already forked httpie-cli
mirror of
https://github.com/httpie/cli.git
synced 2025-07-07 01:06:06 +02:00
Ignore crashes that happen on the 3rd party plugins (#1228)
* Ignore crashes that happen on the 3rd party plugins * Give a suggestion about how to uninstall
This commit is contained in:
@ -178,6 +178,14 @@ def dummy_plugin(interface):
|
||||
return interface.make_dummy_plugin()
|
||||
|
||||
|
||||
@pytest.fixture(scope='function')
|
||||
def broken_plugin(interface):
|
||||
base_plugin = interface.make_dummy_plugin()
|
||||
with open(base_plugin.path / (base_plugin.import_name + '.py'), 'a') as stream:
|
||||
stream.write('raise ValueError("broken plugin")\n')
|
||||
return base_plugin
|
||||
|
||||
|
||||
@pytest.fixture(scope='function')
|
||||
def dummy_plugins(interface):
|
||||
# Multiple plugins with different configurations
|
||||
|
Reference in New Issue
Block a user