Skip to content

Commit

Permalink
test: --formatter=none config parsing
Browse files Browse the repository at this point in the history
  • Loading branch information
akaihola committed Oct 28, 2024
1 parent 5d61eb5 commit 4a43af4
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions src/darker/tests/test_command_line.py
Original file line number Diff line number Diff line change
Expand Up @@ -195,6 +195,18 @@ def get_darker_help_output(capsys):
expect_config=("formatter", "black"),
expect_modified=("formatter", ...),
),
dict(
argv=["--formatter", "none", "."],
expect_value=("formatter", "none"),
expect_config=("formatter", "none"),
expect_modified=("formatter", "none"),
),
dict(
argv=["--formatter=none", "."],
expect_value=("formatter", "none"),
expect_config=("formatter", "none"),
expect_modified=("formatter", "none"),
),
dict(
argv=["--formatter", "rustfmt", "."],
expect_value=SystemExit,
Expand Down

0 comments on commit 4a43af4

Please sign in to comment.