Skip to content

Commit 4258869

Browse files
Homer QuanHomer Quan
authored andcommitted
test: stabilize release CLI assertions
1 parent 464a817 commit 4258869

3 files changed

Lines changed: 6 additions & 6 deletions

File tree

‎tests/test_blueprint_cmds.py‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -988,8 +988,8 @@ def test_blueprint_run_help_lists_repeatable_set_option():
988988
result = runner.invoke(app, ["blueprint", "run", "--help"])
989989

990990
assert result.exit_code == 0
991-
assert "--set" in result.stdout
992-
assert "PATH=VALUE" in result.stdout
991+
assert "--set" in result.output
992+
assert "PATH=VALUE" in result.output
993993

994994

995995
def test_blueprint_run_set_is_forwarded_to_scheduled_bundle(mocker, tmp_path):

‎tests/test_main.py‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -142,8 +142,8 @@ def test_cancel_all_help_documents_confirmation_bypass():
142142

143143
assert result.exit_code == 0
144144
assert "Cancel all active jobs" in result.stdout
145-
assert "--yes" in result.stdout
146-
assert "-y" in result.stdout
145+
assert "--yes" in result.output
146+
assert "-y" in result.output
147147

148148

149149
def test_command_help_includes_argument_description_and_examples():

‎tests/test_server_cmds.py‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2022,8 +2022,8 @@ def redis_command(host, port, password, *args):
20222022
_join_network("192.168.4.20", "join-token", grpc_port=50055)
20232023

20242024
assert not any(call[3][0] == "REPLICAOF" for call in redis_calls)
2025-
output = capsys.readouterr().out
2026-
assert "Worker Redis replication skipped: worker advertised the primary Redis endpoint." in output
2025+
output = " ".join(capsys.readouterr().out.split())
2026+
assert "Worker Redis replication was skipped because the worker advertised the primary Redis endpoint." in output
20272027
assert "Replication:" not in output
20282028

20292029

0 commit comments

Comments
 (0)