Skip to content

Commit 7e7c10a

Browse files
nipunn1313uranusjr
authored andcommitted
Run black on tests/functional/test_new_resolver_errors.py
1 parent 1b15952 commit 7e7c10a

File tree

1 file changed

+25
-10
lines changed

1 file changed

+25
-10
lines changed

tests/functional/test_new_resolver_errors.py

Lines changed: 25 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -8,20 +8,29 @@ def test_new_resolver_conflict_requirements_file(tmpdir, script):
88
create_basic_wheel_for_package(script, "base", "1.0")
99
create_basic_wheel_for_package(script, "base", "2.0")
1010
create_basic_wheel_for_package(
11-
script, "pkga", "1.0", depends=["base==1.0"],
11+
script,
12+
"pkga",
13+
"1.0",
14+
depends=["base==1.0"],
1215
)
1316
create_basic_wheel_for_package(
14-
script, "pkgb", "1.0", depends=["base==2.0"],
17+
script,
18+
"pkgb",
19+
"1.0",
20+
depends=["base==2.0"],
1521
)
1622

1723
req_file = tmpdir.joinpath("requirements.txt")
1824
req_file.write_text("pkga\npkgb")
1925

2026
result = script.pip(
2127
"install",
22-
"--no-cache-dir", "--no-index",
23-
"--find-links", script.scratch_path,
24-
"-r", req_file,
28+
"--no-cache-dir",
29+
"--no-index",
30+
"--find-links",
31+
script.scratch_path,
32+
"-r",
33+
req_file,
2534
expect_error=True,
2635
)
2736

@@ -37,9 +46,12 @@ def test_new_resolver_conflict_constraints_file(tmpdir, script):
3746

3847
result = script.pip(
3948
"install",
40-
"--no-cache-dir", "--no-index",
41-
"--find-links", script.scratch_path,
42-
"-c", constrats_file,
49+
"--no-cache-dir",
50+
"--no-index",
51+
"--find-links",
52+
script.scratch_path,
53+
"-c",
54+
constrats_file,
4355
"pkg==1.0",
4456
expect_error=True,
4557
)
@@ -95,8 +107,11 @@ def test_new_resolver_checks_requires_python_before_dependencies(script):
95107
)
96108

97109
result = script.pip(
98-
"install", "--no-cache-dir",
99-
"--no-index", "--find-links", script.scratch_path,
110+
"install",
111+
"--no-cache-dir",
112+
"--no-index",
113+
"--find-links",
114+
script.scratch_path,
100115
"pkg-root",
101116
expect_error=True,
102117
)

0 commit comments

Comments
 (0)