mirror of
https://github.com/simonw/datasette.git
synced 2025-12-10 16:51:24 +01:00
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:
parent
0e2d9ccd99
commit
ef8e75db78
3 changed files with 11 additions and 8 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue