1
0
Fork 0

Merging upstream version 1.30.0.

Signed-off-by: Daniel Baumann <daniel@debian.org>
This commit is contained in:
Daniel Baumann 2025-04-21 09:44:12 +02:00
parent 1b2f180fc6
commit 1fa9e0bfa5
Signed by: daniel
GPG key ID: FBB4F0E80A80222F
11 changed files with 125 additions and 17 deletions

View file

@ -553,3 +553,14 @@ def test_init_command_multiple_arg(executor):
assert result.exit_code == 0
assert expected_sql_select_limit in result.output
assert expected_max_join_size in result.output
@dbtest
def test_global_init_commands(executor):
"""Tests that global init-commands from config are executed by default."""
# The global init-commands section in test/myclirc sets sql_select_limit=9999
sql = 'show variables like "sql_select_limit";'
runner = CliRunner()
result = runner.invoke(cli, args=CLI_ARGS, input=sql)
expected = "sql_select_limit\t9999\n"
assert result.exit_code == 0
assert expected in result.output