mirror of
https://github.com/TECHNOFAB11/bumpver.git
synced 2025-12-12 14:30:09 +01:00
cleanup
- flat is better than nested - more consistent variable names - positive messages
This commit is contained in:
parent
0a109aad21
commit
29f0925bd3
2 changed files with 22 additions and 24 deletions
|
|
@ -691,18 +691,16 @@ def test_incorrect_vcs_option_tag_push(runner, caplog):
|
|||
result = runner.invoke(cli.cli, ['update', "-vv", "--tag-commit"])
|
||||
assert result.exit_code == 1
|
||||
assert len(caplog.records) == 1
|
||||
assert (
|
||||
"Invalid argument: --tag-commit requires the --commit flag if commit=False in the config file"
|
||||
in caplog.records[0].message
|
||||
expected = (
|
||||
"Invalid argument: --tag-commit requires either --commit or commit=True in your config"
|
||||
)
|
||||
assert expected in caplog.records[0].message
|
||||
|
||||
result = runner.invoke(cli.cli, ['update', "-vv", "--push"])
|
||||
assert result.exit_code == 1
|
||||
assert len(caplog.records) == 2
|
||||
assert (
|
||||
"Invalid argument: --push requires the --commit flag if commit=False in the config file"
|
||||
in caplog.records[1].message
|
||||
)
|
||||
expected = "Invalid argument: --push requires either --commit or commit=True in your config"
|
||||
assert expected in caplog.records[1].message
|
||||
|
||||
|
||||
@pytest.mark.parametrize("version_pattern, cur_version, cur_pep440", DEFAULT_VERSION_PATTERNS)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue