mirror of
https://github.com/FirebirdSQL/firebird-qa.git
synced 2025-01-22 13:33:07 +01:00
Added/Updated tests\bugs\core_4067_test.py: added combine_output in order to see STDERR content
This commit is contained in:
parent
dc74530920
commit
655577ae41
@ -14,11 +14,10 @@ from pathlib import Path
|
||||
from firebird.qa import *
|
||||
|
||||
db = db_factory()
|
||||
|
||||
act = python_act('db')
|
||||
act = python_act('db', substitutions = [('[ \t]+', ' ')])
|
||||
|
||||
expected_stdout = """
|
||||
X 1
|
||||
SQL_DIALECT 1
|
||||
"""
|
||||
|
||||
temp_db = temp_file('tmp_4067_1.fdb')
|
||||
@ -26,11 +25,14 @@ temp_db = temp_file('tmp_4067_1.fdb')
|
||||
@pytest.mark.version('>=3')
|
||||
def test_1(act: Action, temp_db: Path):
|
||||
test_script = f"""
|
||||
set bail on;
|
||||
set list on;
|
||||
set sql dialect 1;
|
||||
create database 'localhost:{str(temp_db)}' page_size 4096 default character set win1251 collation win1251;
|
||||
set list on;
|
||||
select mon$sql_dialect as x from mon$database;
|
||||
"""
|
||||
select mon$sql_dialect as sql_dialect from mon$database;
|
||||
commit;
|
||||
drop database;
|
||||
"""
|
||||
act.expected_stdout = expected_stdout
|
||||
act.isql(switches=[], input=test_script, connect_db=False)
|
||||
act.isql(switches = ['-q'], input=test_script, connect_db=False, combine_output = True)
|
||||
assert act.clean_stdout == act.clean_expected_stdout
|
||||
|
Loading…
Reference in New Issue
Block a user