Merging upstream version 1.30.0.
Signed-off-by: Daniel Baumann <daniel@debian.org>
This commit is contained in:
parent
1b2f180fc6
commit
1fa9e0bfa5
11 changed files with 125 additions and 17 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue