Skip to content

Commit

Permalink
Sync test_main with PEP 440 change
Browse files Browse the repository at this point in the history
  • Loading branch information
akaihola committed Jul 31, 2024
1 parent ec2d9f5 commit 5447e73
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions action/tests/test_main.py
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@ def test_creates_virtualenv(tmp_path, main_patch, github_output):
),
dict(
run_main_env={"INPUT_VERSION": "@master"},
expect=["git+https://github.com/akaihola/darker@master#egg=darker"],
expect=["darker[color,isort]@git+https://github.com/akaihola/darker@master"],
),
dict(
run_main_env={"INPUT_LINT": "pylint"},
Expand Down Expand Up @@ -250,7 +250,7 @@ def test_error_if_pip_fails(tmp_path, capsys):
)
assert (
capsys.readouterr().out.splitlines()[-1]
== "::error::Failed to install darker[color,isort]."
== "Darker::error::Failed to install darker[color,isort]."
)
main_patch.sys.exit.assert_called_once_with(42)

Expand Down

0 comments on commit 5447e73

Please sign in to comment.