Bump to click 7.1.1 to fix flaky tests

This commit is contained in:
Simon Willison 2020-03-21 18:47:51 -07:00
commit e1a817411a
4 changed files with 4 additions and 4 deletions

View file

@ -36,7 +36,7 @@ setup(
package_data={"datasette": ["templates/*.html"]},
include_package_data=True,
install_requires=[
"click~=7.0",
"click~=7.1.1",
"click-default-group~=1.2.2",
"Jinja2~=2.10.3",
"hupper~=1.9",

View file

@ -22,7 +22,7 @@ def test_publish_cloudrun_invalid_database(mock_which):
runner = CliRunner()
result = runner.invoke(cli.cli, ["publish", "cloudrun", "woop.db"])
assert result.exit_code == 2
assert 'Path "woop.db" does not exist' in result.output
assert "Path 'woop.db' does not exist" in result.output
@mock.patch("shutil.which")

View file

@ -39,7 +39,7 @@ def test_publish_heroku_invalid_database(mock_which):
runner = CliRunner()
result = runner.invoke(cli.cli, ["publish", "heroku", "woop.db"])
assert result.exit_code == 2
assert 'Path "woop.db" does not exist' in result.output
assert "Path 'woop.db' does not exist" in result.output
@mock.patch("shutil.which")

View file

@ -22,7 +22,7 @@ def test_publish_now_invalid_database(mock_which):
runner = CliRunner()
result = runner.invoke(cli.cli, ["publish", "nowv1", "woop.db"])
assert result.exit_code == 2
assert 'Path "woop.db" does not exist' in result.output
assert "Path 'woop.db' does not exist" in result.output
@mock.patch("shutil.which")