Skip to content

Commit 1306868

Browse files
nipunn1313uranusjr
authored andcommitted
Run black on tests/functional/test_new_resolver_hashes.py
1 parent 36877e3 commit 1306868

File tree

1 file changed

+37
-18
lines changed

1 file changed

+37
-18
lines changed

tests/functional/test_new_resolver_hashes.py

Lines changed: 37 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,8 @@
77
from tests.lib import create_basic_sdist_for_package, create_basic_wheel_for_package
88

99
_FindLinks = collections.namedtuple(
10-
"_FindLinks", "index_html sdist_hash wheel_hash",
10+
"_FindLinks",
11+
"index_html sdist_hash wheel_hash",
1112
)
1213

1314

@@ -75,9 +76,11 @@ def test_new_resolver_hash_intersect(script, requirements_template, message):
7576
"--no-cache-dir",
7677
"--no-deps",
7778
"--no-index",
78-
"--find-links", find_links.index_html,
79+
"--find-links",
80+
find_links.index_html,
7981
"-vv",
80-
"--requirement", requirements_txt,
82+
"--requirement",
83+
requirements_txt,
8184
)
8285

8386
assert message.format(name="base") in result.stdout, str(result)
@@ -107,10 +110,13 @@ def test_new_resolver_hash_intersect_from_constraint(script):
107110
"--no-cache-dir",
108111
"--no-deps",
109112
"--no-index",
110-
"--find-links", find_links.index_html,
113+
"--find-links",
114+
find_links.index_html,
111115
"-vv",
112-
"--constraint", constraints_txt,
113-
"--requirement", requirements_txt,
116+
"--constraint",
117+
constraints_txt,
118+
"--requirement",
119+
requirements_txt,
114120
)
115121

116122
message = (
@@ -138,7 +144,9 @@ def test_new_resolver_hash_intersect_from_constraint(script):
138144
ids=["both-requirements", "one-each"],
139145
)
140146
def test_new_resolver_hash_intersect_empty(
141-
script, requirements_template, constraints_template,
147+
script,
148+
requirements_template,
149+
constraints_template,
142150
):
143151
find_links = _create_find_links(script)
144152

@@ -163,9 +171,12 @@ def test_new_resolver_hash_intersect_empty(
163171
"--no-cache-dir",
164172
"--no-deps",
165173
"--no-index",
166-
"--find-links", find_links.index_html,
167-
"--constraint", constraints_txt,
168-
"--requirement", requirements_txt,
174+
"--find-links",
175+
find_links.index_html,
176+
"--constraint",
177+
constraints_txt,
178+
"--requirement",
179+
requirements_txt,
169180
expect_error=True,
170181
)
171182

@@ -193,8 +204,10 @@ def test_new_resolver_hash_intersect_empty_from_constraint(script):
193204
"--no-cache-dir",
194205
"--no-deps",
195206
"--no-index",
196-
"--find-links", find_links.index_html,
197-
"--constraint", constraints_txt,
207+
"--find-links",
208+
find_links.index_html,
209+
"--constraint",
210+
constraints_txt,
198211
"base==0.1.0",
199212
expect_error=True,
200213
)
@@ -208,7 +221,8 @@ def test_new_resolver_hash_intersect_empty_from_constraint(script):
208221

209222
@pytest.mark.parametrize("constrain_by_hash", [False, True])
210223
def test_new_resolver_hash_requirement_and_url_constraint_can_succeed(
211-
script, constrain_by_hash,
224+
script,
225+
constrain_by_hash,
212226
):
213227
wheel_path = create_basic_wheel_for_package(script, "base", "0.1.0")
214228

@@ -235,16 +249,19 @@ def test_new_resolver_hash_requirement_and_url_constraint_can_succeed(
235249
"install",
236250
"--no-cache-dir",
237251
"--no-index",
238-
"--constraint", constraints_txt,
239-
"--requirement", requirements_txt,
252+
"--constraint",
253+
constraints_txt,
254+
"--requirement",
255+
requirements_txt,
240256
)
241257

242258
script.assert_installed(base="0.1.0")
243259

244260

245261
@pytest.mark.parametrize("constrain_by_hash", [False, True])
246262
def test_new_resolver_hash_requirement_and_url_constraint_can_fail(
247-
script, constrain_by_hash,
263+
script,
264+
constrain_by_hash,
248265
):
249266
wheel_path = create_basic_wheel_for_package(script, "base", "0.1.0")
250267
other_path = create_basic_wheel_for_package(script, "other", "0.1.0")
@@ -272,8 +289,10 @@ def test_new_resolver_hash_requirement_and_url_constraint_can_fail(
272289
"install",
273290
"--no-cache-dir",
274291
"--no-index",
275-
"--constraint", constraints_txt,
276-
"--requirement", requirements_txt,
292+
"--constraint",
293+
constraints_txt,
294+
"--requirement",
295+
requirements_txt,
277296
expect_error=True,
278297
)
279298

0 commit comments

Comments
 (0)