diff options
Diffstat (limited to 'tests/functional/test_uninstall.py')
-rw-r--r-- | tests/functional/test_uninstall.py | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/tests/functional/test_uninstall.py b/tests/functional/test_uninstall.py index 9b408de6b..3e5add755 100644 --- a/tests/functional/test_uninstall.py +++ b/tests/functional/test_uninstall.py @@ -228,3 +228,14 @@ def test_uninstallpathset_non_local(mock_logger): uninstall_set = UninstallPathSet(test_dist) uninstall_set.remove() #with no files added to set; which is the case when trying to remove non-local dists mock_logger.notify.assert_any_call("Not uninstalling pip at %s, outside environment %s" % (nonlocal_path, sys.prefix)), mock_logger.notify.mock_calls + +def test_uninstall_wheel(script, data): + """ + Test uninstalling a wheel + """ + package = data.packages.join("simple.dist-0.1-py2.py3-none-any.whl") + result = script.pip('install', package, '--no-index') + dist_info_folder = script.site_packages / 'simple.dist-0.1.dist-info' + assert dist_info_folder in result.files_created + result2 = script.pip('uninstall', 'simple.dist', '-y') + assert_all_changes(result, result2, []) |