Update tests for Python 3.11, closes #502

This commit is contained in:
Simon Willison 2022-10-25 12:23:20 -07:00
commit 7b2d1c0ffd

View file

@ -737,10 +737,7 @@ def test_query_invalid_function(db_path):
cli.cli, [db_path, "select bad()", "--functions", "def invalid_python"]
)
assert result.exit_code == 1
assert (
result.output.strip()
== "Error: Error in functions definition: invalid syntax (<string>, line 1)"
)
assert result.output.startswith("Error: Error in functions definition:")
TEST_FUNCTIONS = """