Backported CliRunner fix from e3eb356a

Removed obsolete mix_stderr=False arguments from CliRunner() calls
which are not supported in Click 8.3.0.
This commit is contained in:
Simon Willison 2025-11-04 17:36:31 -08:00
commit ef8e75db78
3 changed files with 11 additions and 8 deletions

View file

@ -114,7 +114,7 @@ def test_settings(config_dir_client):
def test_error_on_config_json(tmp_path_factory):
config_dir = tmp_path_factory.mktemp("config-dir")
(config_dir / "config.json").write_text(json.dumps(SETTINGS), "utf-8")
runner = CliRunner(mix_stderr=False)
runner = CliRunner()
result = runner.invoke(cli, [str(config_dir), "--get", "/-/settings.json"])
assert result.exit_code == 1
assert "config.json should be renamed to settings.json" in result.stderr