MCPcopy Index your code
hub / github.com/httpie/cli / broken_plugin

Function broken_plugin

tests/utils/plugins_cli.py:182–186  ·  view source on GitHub ↗
(interface)

Source from the content-addressed store, hash-verified

180
181@pytest.fixture(scope='function')
182def broken_plugin(interface):
183 base_plugin = interface.make_dummy_plugin()
184 with open(base_plugin.path / (base_plugin.import_name + '.py'), 'a') as stream:
185 stream.write('raise ValueError("broken plugin")\n')
186 return base_plugin
187
188
189@pytest.fixture(scope='function')

Callers

nothing calls this directly

Calls 2

make_dummy_pluginMethod · 0.80
writeMethod · 0.45

Tested by

no test coverage detected