From e1a817411a20e3120943ee407503e53a7445c0db Mon Sep 17 00:00:00 2001 From: Simon Willison Date: Sat, 21 Mar 2020 18:47:51 -0700 Subject: [PATCH] Bump to click 7.1.1 to fix flaky tests --- setup.py | 2 +- tests/test_publish_cloudrun.py | 2 +- tests/test_publish_heroku.py | 2 +- tests/test_publish_now.py | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/setup.py b/setup.py index 8e556fba..85c935a5 100644 --- a/setup.py +++ b/setup.py @@ -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", diff --git a/tests/test_publish_cloudrun.py b/tests/test_publish_cloudrun.py index 272dd68e..efac7bbe 100644 --- a/tests/test_publish_cloudrun.py +++ b/tests/test_publish_cloudrun.py @@ -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") diff --git a/tests/test_publish_heroku.py b/tests/test_publish_heroku.py index 87386e93..a6238162 100644 --- a/tests/test_publish_heroku.py +++ b/tests/test_publish_heroku.py @@ -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") diff --git a/tests/test_publish_now.py b/tests/test_publish_now.py index 27fd1245..532fc50e 100644 --- a/tests/test_publish_now.py +++ b/tests/test_publish_now.py @@ -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")