Skip to content

Commit

Permalink
fix(deps): update dependency rich-click to v1.6.1 (#760)
Browse files Browse the repository at this point in the history
* fix(deps): update dependency rich-click to v1.6.1

* chore: update tests to be less sensitive to formatting

---------

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: Bruno Alla <[email protected]>
  • Loading branch information
renovate[bot] and browniebroke authored Mar 16, 2023
1 parent 6c75d01 commit 535ae80
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 13 deletions.
7 changes: 3 additions & 4 deletions poetry.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

11 changes: 2 additions & 9 deletions tests/test_cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,6 @@ def test_missing_argument(cli_runner):
assert result.exit_code == 2
assert "Error" in result.output
assert "Missing argument" in result.output
assert "'SRC...'" in result.output


def test_no_mods_selected(cli_runner):
Expand All @@ -50,7 +49,6 @@ def test_help(cli_runner):
help_result = cli_runner.invoke(cli.djcodemod, ["--help"])

assert help_result.exit_code == 0
assert "--help" in help_result.output
assert "Show this message and exit." in help_result.output


Expand All @@ -76,10 +74,8 @@ def test_non_supported_version(cli_runner, option, version):
result = cli_runner.invoke(cli.djcodemod, ["run", option, version, "."])

assert result.exit_code == 2
assert (
f"Invalid value for '{option}': "
f"'{version}' is not supported." in result.output
)
assert "Invalid value for" in result.output
assert "is not supported." in result.output
assert "supported:" in result.output


Expand All @@ -99,9 +95,6 @@ def test_run_help(cli_runner):
)

assert result.exit_code == 0
assert "--codemod" in result.output
assert "--deprecated-in" in result.output
assert "--removed-in" in result.output
assert "djcodemod list" in result.output


Expand Down

0 comments on commit 535ae80

Please sign in to comment.