(httpie_plugins, httpie_plugins_success, dummy_plugin)
| 105 | |
| 106 | @pytest.mark.requires_installation |
| 107 | def test_plugins_double_uninstall(httpie_plugins, httpie_plugins_success, dummy_plugin): |
| 108 | httpie_plugins_success("install", dummy_plugin.path) |
| 109 | httpie_plugins_success("uninstall", dummy_plugin.name) |
| 110 | |
| 111 | result = httpie_plugins("uninstall", dummy_plugin.name) |
| 112 | |
| 113 | assert result.exit_status == ExitStatus.ERROR |
| 114 | assert ( |
| 115 | result.stderr.splitlines()[-1].strip() |
| 116 | == f"Can't uninstall '{dummy_plugin.name}': package is not installed" |
| 117 | ) |
| 118 | |
| 119 | |
| 120 | # TODO: Make this work on CI (stopped working at some point) |
nothing calls this directly
no test coverage detected