Skip to content

Commit ddab00b

Browse files
committed
Run All checks passed! + manual addition of spaces
1 parent 57088cc commit ddab00b

12 files changed

+24
-24
lines changed

tests/functional/test_fast_deps.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ def assert_installed(script: PipTestEnvironment, names: str) -> None:
3232

3333
@mark.network
3434
@mark.parametrize(
35-
("requirement", "expected"),
35+
"requirement, expected",
3636
(
3737
("Paste==3.4.2", ("Paste", "six")),
3838
("Paste[flup]==3.4.2", ("Paste", "six", "flup")),
@@ -47,7 +47,7 @@ def test_install_from_pypi(
4747

4848
@mark.network
4949
@mark.parametrize(
50-
("requirement", "expected"),
50+
"requirement, expected",
5151
(
5252
("Paste==3.4.2", ("Paste-3.4.2-*.whl", "six-*.whl")),
5353
("Paste[flup]==3.4.2", ("Paste-3.4.2-*.whl", "six-*.whl", "flup-*")),

tests/unit/test_collector.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -259,7 +259,7 @@ def test_get_simple_response_dont_log_clear_text_password(
259259

260260

261261
@pytest.mark.parametrize(
262-
("path", "expected"),
262+
"path, expected",
263263
[
264264
# Test a character that needs quoting.
265265
("a b", "a%20b"),
@@ -299,7 +299,7 @@ def test_clean_url_path(path: str, expected: str, is_local_path: bool) -> None:
299299

300300

301301
@pytest.mark.parametrize(
302-
("path", "expected"),
302+
"path, expected",
303303
[
304304
# Test a VCS path with a Windows drive letter and revision.
305305
pytest.param(
@@ -322,7 +322,7 @@ def test_clean_url_path_with_local_path(path: str, expected: str) -> None:
322322

323323

324324
@pytest.mark.parametrize(
325-
("url", "clean_url"),
325+
"url, clean_url",
326326
[
327327
# URL with hostname and port. Port separator should not be quoted.
328328
(

tests/unit/test_index.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -819,7 +819,7 @@ def test_make_candidate_evaluator(
819819

820820

821821
@pytest.mark.parametrize(
822-
("fragment", "canonical_name", "expected"),
822+
"fragment, canonical_name, expected",
823823
[
824824
# Trivial.
825825
("pip-18.0", "pip", 3),
@@ -851,7 +851,7 @@ def test_find_name_version_sep(
851851

852852

853853
@pytest.mark.parametrize(
854-
("fragment", "canonical_name"),
854+
"fragment, canonical_name",
855855
[
856856
# A dash must follow the package name.
857857
("zope.interface4.5.0", "zope-interface"),
@@ -868,7 +868,7 @@ def test_find_name_version_sep_failure(fragment: str, canonical_name: str) -> No
868868

869869

870870
@pytest.mark.parametrize(
871-
("fragment", "canonical_name", "expected"),
871+
"fragment, canonical_name, expected",
872872
[
873873
# Trivial.
874874
("pip-18.0", "pip", "18.0"),

tests/unit/test_network_auth.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ def reset_keyring() -> Iterable[None]:
2020

2121

2222
@pytest.mark.parametrize(
23-
["input_url", "url", "username", "password"],
23+
"input_url, url, username, password",
2424
[
2525
(
2626
"http://user%40email.com:[email protected]/path",

tests/unit/test_network_utils.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66

77

88
@pytest.mark.parametrize(
9-
("status_code", "error_type"),
9+
"status_code, error_type",
1010
[
1111
(401, "Client Error"),
1212
(501, "Server Error"),

tests/unit/test_pep517.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010

1111

1212
@pytest.mark.parametrize(
13-
("source", "expected"),
13+
"source, expected",
1414
[
1515
("pep517_setup_and_pyproject", True),
1616
("pep517_setup_only", False),
@@ -45,7 +45,7 @@ def test_use_pep517_rejects_setup_cfg_only(shared_data: TestData) -> None:
4545

4646

4747
@pytest.mark.parametrize(
48-
("source", "msg"),
48+
"source, msg",
4949
[
5050
("pep517_setup_and_pyproject", "specifies a build backend"),
5151
("pep517_pyproject_only", "does not have a setup.py"),
@@ -71,7 +71,7 @@ def test_disabling_pep517_invalid(shared_data: TestData, source: str, msg: str)
7171

7272

7373
@pytest.mark.parametrize(
74-
("spec",), [("./foo",), ("git+https://example.com/pkg@dev#egg=myproj",)]
74+
"spec", [("./foo",), ("git+https://example.com/pkg@dev#egg=myproj",)]
7575
)
7676
def test_pep517_parsing_checks_requirements(tmpdir: Path, spec: str) -> None:
7777
tmpdir.joinpath("pyproject.toml").write_text(

tests/unit/test_pyproject_config.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66

77

88
@pytest.mark.parametrize(
9-
("command", "expected"),
9+
"command, expected",
1010
[
1111
("install", True),
1212
("wheel", True),
@@ -39,7 +39,7 @@ def test_set_config_empty_value() -> None:
3939

4040

4141
@pytest.mark.parametrize(
42-
("passed", "expected"),
42+
"passed, expected",
4343
[
4444
(["x=hello", "x=world"], {"x": ["hello", "world"]}),
4545
(["x=hello", "x=world", "x=other"], {"x": ["hello", "world", "other"]}),

tests/unit/test_self_check_outdated.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616

1717

1818
@pytest.mark.parametrize(
19-
["key", "expected"],
19+
"key, expected",
2020
[
2121
(
2222
"/hello/world/venv",
@@ -59,7 +59,7 @@ def test_pip_self_version_check_calls_underlying_implementation(
5959

6060

6161
@pytest.mark.parametrize(
62-
[
62+
[ # noqa: PT006 - String representation is too long
6363
"installed_version",
6464
"remote_version",
6565
"stored_version",

tests/unit/test_utils.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -559,7 +559,7 @@ def test_normalize_version_info(
559559

560560
class TestGetProg:
561561
@pytest.mark.parametrize(
562-
("argv", "executable", "expected"),
562+
"argv, executable, expected",
563563
[
564564
("/usr/bin/pip", "", "pip"),
565565
("-c", "/usr/bin/python", "/usr/bin/python -m pip"),
@@ -1061,7 +1061,7 @@ def test_format_size(size: int, expected: str) -> None:
10611061

10621062

10631063
@pytest.mark.parametrize(
1064-
("rows", "table", "sizes"),
1064+
"rows, table, sizes",
10651065
[
10661066
([], [], []),
10671067
(

tests/unit/test_utils_subprocess.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ def test_format_command_args(args: CommandArgs, expected: str) -> None:
3939

4040

4141
@pytest.mark.parametrize(
42-
("stdout_only", "expected"),
42+
"stdout_only, expected",
4343
[
4444
(True, ("out\n", "out\r\n")),
4545
(False, ("out\nerr\n", "out\r\nerr\r\n", "err\nout\n", "err\r\nout\r\n")),
@@ -312,7 +312,7 @@ def test_info_logging_with_show_stdout_true(
312312
)
313313

314314
@pytest.mark.parametrize(
315-
("exit_status", "show_stdout", "extra_ok_returncodes", "log_level", "expected"),
315+
"exit_status, show_stdout, extra_ok_returncodes, log_level, expected",
316316
[
317317
# The spinner should show here because show_stdout=False means
318318
# the subprocess should get logged at DEBUG level, but the passed

0 commit comments

Comments
 (0)