-
-
Notifications
You must be signed in to change notification settings - Fork 611
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'main' into always-strip-extras-warning
- Loading branch information
Showing
8 changed files
with
149 additions
and
21 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -779,7 +779,10 @@ def test_direct_reference_with_extras(runner): | |
) | ||
out = runner.invoke(cli, ["-n", "--rebuild", "--no-build-isolation"]) | ||
assert out.exit_code == 0 | ||
assert "pip-tools @ git+https://github.com/jazzband/[email protected]" in out.stderr | ||
assert ( | ||
"pip-tools[coverage,testing] @ git+https://github.com/jazzband/[email protected]" | ||
in out.stderr | ||
) | ||
assert "pytest==" in out.stderr | ||
assert "pytest-cov==" in out.stderr | ||
|
||
|
@@ -2957,7 +2960,7 @@ def test_compile_recursive_extras(runner, tmp_path, current_resolver): | |
"-", | ||
], | ||
) | ||
expected = rf"""foo @ {tmp_path.as_uri()} | ||
expected = rf"""foo[footest] @ {tmp_path.as_uri()} | ||
small-fake-a==0.2 | ||
small-fake-b==0.3 | ||
""" | ||
|
@@ -2977,6 +2980,18 @@ def test_config_option(pip_conf, runner, tmp_path, make_config_file): | |
assert "Dry-run, so nothing updated" in out.stderr | ||
|
||
|
||
def test_default_config_option(pip_conf, runner, make_config_file, tmpdir_cwd): | ||
make_config_file("dry-run", True) | ||
|
||
req_in = tmpdir_cwd / "requirements.in" | ||
req_in.touch() | ||
|
||
out = runner.invoke(cli) | ||
|
||
assert out.exit_code == 0 | ||
assert "Dry-run, so nothing updated" in out.stderr | ||
|
||
|
||
def test_no_config_option_overrides_config_with_defaults( | ||
pip_conf, runner, tmp_path, make_config_file | ||
): | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters