From e1106f7c66e8188a33c63f6e30a18fe55876c74b Mon Sep 17 00:00:00 2001 From: Simon Willison Date: Sat, 20 Mar 2021 22:04:21 -0700 Subject: [PATCH] Fixed test broken by last README update --- tests/test_publish_vercel.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/test_publish_vercel.py b/tests/test_publish_vercel.py index b9563e0..bc867a6 100644 --- a/tests/test_publish_vercel.py +++ b/tests/test_publish_vercel.py @@ -244,7 +244,7 @@ def test_help_in_readme(request): # Ensure the --help output embedded in the README is up-to-date readme_path = pathlib.Path(__file__).parent.parent / "README.md" readme = readme_path.read_text() - block_re = re.compile("```(.*)```", re.DOTALL) + block_re = re.compile("```(.*?)```", re.DOTALL) expected = block_re.search(readme).group(1).strip() runner = CliRunner() result = runner.invoke(cli.cli, ["publish", "vercel", "--help"], terminal_width=88)