Skip to content

Commit 642c36a

Browse files
committed
"no atomic" test: add an other assertion
It was far too easy for the test to pass ...
1 parent b4d7d90 commit 642c36a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tbump/test/test_cli.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -140,7 +140,6 @@ def test_end_to_end_using_tbump_toml(test_repo: Path) -> None:
140140
def test_end_to_end_using_tbump_toml_no_atomic(
141141
test_repo: Path, git_recorder: GitRecorder
142142
) -> None:
143-
144143
tbump_toml = test_repo / "tbump.toml"
145144
doc = tomlkit.loads(tbump_toml.read_text())
146145
doc["git"]["atomic_push"] = False # type: ignore[index]
@@ -160,6 +159,7 @@ def test_end_to_end_using_tbump_toml_no_atomic(
160159

161160
assert bump_done(test_repo, previous_commit)
162161
last_command = git_recorder.commands()[-1]
162+
assert "push" in last_command
163163
assert "--atomic" not in last_command
164164

165165

0 commit comments

Comments
 (0)