Skip to content

Commit d03b8a8

Browse files
nipunn1313uranusjr
authored andcommitted
Run black on tests/functional/test_uninstall_user.py
1 parent ba5a678 commit d03b8a8

File tree

1 file changed

+19
-21
lines changed

1 file changed

+19
-21
lines changed

tests/functional/test_uninstall_user.py

Lines changed: 19 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -12,41 +12,41 @@
1212

1313
@pytest.mark.incompatible_with_test_venv
1414
class Tests_UninstallUserSite:
15-
1615
@pytest.mark.network
1716
def test_uninstall_from_usersite(self, script):
1817
"""
1918
Test uninstall from usersite
2019
"""
21-
result1 = script.pip('install', '--user', 'INITools==0.3')
22-
result2 = script.pip('uninstall', '-y', 'INITools')
23-
assert_all_changes(result1, result2, [script.venv / 'build', 'cache'])
20+
result1 = script.pip("install", "--user", "INITools==0.3")
21+
result2 = script.pip("uninstall", "-y", "INITools")
22+
assert_all_changes(result1, result2, [script.venv / "build", "cache"])
2423

25-
def test_uninstall_from_usersite_with_dist_in_global_site(
26-
self, virtualenv, script):
24+
def test_uninstall_from_usersite_with_dist_in_global_site(self, virtualenv, script):
2725
"""
2826
Test uninstall from usersite (with same dist in global site)
2927
"""
3028
_patch_dist_in_site_packages(virtualenv)
3129

32-
script.pip_install_local('pip-test-package==0.1', '--no-binary=:all:')
30+
script.pip_install_local("pip-test-package==0.1", "--no-binary=:all:")
3331

3432
result2 = script.pip_install_local(
35-
'--user', 'pip-test-package==0.1.1', '--no-binary=:all:')
36-
result3 = script.pip('uninstall', '-vy', 'pip-test-package')
33+
"--user", "pip-test-package==0.1.1", "--no-binary=:all:"
34+
)
35+
result3 = script.pip("uninstall", "-vy", "pip-test-package")
3736

3837
# uninstall console is mentioning user scripts, but not global scripts
3938
assert normcase(script.user_bin_path) in result3.stdout, str(result3)
4039
assert normcase(script.bin_path) not in result3.stdout, str(result3)
4140

4241
# uninstall worked
43-
assert_all_changes(result2, result3, [script.venv / 'build', 'cache'])
42+
assert_all_changes(result2, result3, [script.venv / "build", "cache"])
4443

4544
# site still has 0.2 (can't look in result1; have to check)
4645
# keep checking for egg-info because no-binary implies setup.py install
4746
egg_info_folder = (
48-
script.base_path / script.site_packages /
49-
f'pip_test_package-0.1-py{pyversion}.egg-info'
47+
script.base_path
48+
/ script.site_packages
49+
/ f"pip_test_package-0.1-py{pyversion}.egg-info"
5050
)
5151
assert isdir(egg_info_folder)
5252

@@ -58,22 +58,20 @@ def test_uninstall_editable_from_usersite(self, script, data):
5858

5959
# install
6060
to_install = data.packages.joinpath("FSPkg")
61-
result1 = script.pip(
62-
'install', '--user', '-e', to_install
63-
)
64-
egg_link = script.user_site / 'FSPkg.egg-link'
61+
result1 = script.pip("install", "--user", "-e", to_install)
62+
egg_link = script.user_site / "FSPkg.egg-link"
6563
result1.did_create(egg_link)
6664

6765
# uninstall
68-
result2 = script.pip('uninstall', '-y', 'FSPkg')
66+
result2 = script.pip("uninstall", "-y", "FSPkg")
6967
assert not isfile(script.base_path / egg_link)
7068

7169
assert_all_changes(
7270
result1,
7371
result2,
7472
[
75-
script.venv / 'build',
76-
'cache',
77-
script.user_site / 'easy-install.pth',
78-
]
73+
script.venv / "build",
74+
"cache",
75+
script.user_site / "easy-install.pth",
76+
],
7977
)

0 commit comments

Comments
 (0)