@@ -27,7 +27,7 @@ def test_help_runs_without_synergy(self):
2727 with patch ("moldflow_cli.context.get_synergy" ) as mock_ctx_synergy , patch (
2828 "moldflow_cli.factories.get_synergy"
2929 ) as mock_fact_synergy :
30- result = runner .invoke (app , ["--help" ])
30+ result = runner .invoke (app , ["--no-color" , "-- help" ])
3131 assert result .exit_code == 0
3232 # Help should not need to touch Synergy/COM at all.
3333 mock_ctx_synergy .assert_not_called ()
@@ -40,7 +40,7 @@ def test_help_runs_without_synergy(self):
4040 def test_help_shows_global_no_color_option (self ):
4141 """Global help should advertise the output-styling toggle."""
4242 app = build_cli_app ()
43- result = runner .invoke (app , ["--help" ])
43+ result = runner .invoke (app , ["--no-color" , "-- help" ])
4444 assert result .exit_code == 0
4545 assert "--no-color" in result .stdout
4646
@@ -50,9 +50,9 @@ def test_subcommand_help_runs_without_synergy(self):
5050 with patch ("moldflow_cli.context.get_synergy" ) as mock_ctx_synergy , patch (
5151 "moldflow_cli.factories.get_synergy"
5252 ) as mock_fact_synergy :
53- list_help = runner .invoke (app , ["list" , "--help" ])
54- describe_help = runner .invoke (app , ["describe" , "--help" ])
55- invoke_help = runner .invoke (app , ["invoke" , "--help" ])
53+ list_help = runner .invoke (app , ["--no-color" , " list" , "--help" ])
54+ describe_help = runner .invoke (app , ["--no-color" , " describe" , "--help" ])
55+ invoke_help = runner .invoke (app , ["--no-color" , " invoke" , "--help" ])
5656
5757 assert list_help .exit_code == 0
5858 assert describe_help .exit_code == 0
0 commit comments