mirror of
https://github.com/FirebirdSQL/firebird-qa.git
synced 2025-02-02 02:40:42 +01:00
Added/Updated tests\bugs\core_4933_test.py: added combine_output in order to see STDERR content. Added connect_db=False in order to avoid warning about rollback
This commit is contained in:
parent
21b880feae
commit
88fa321aa6
@ -129,7 +129,8 @@ tmp_db = temp_file('tmp_addi_4933.fdb')
|
||||
|
||||
@pytest.mark.version('>=3.0.6')
|
||||
def test_1(act: Action, addi_script: Path, main_script: Path, tmp_db: Path):
|
||||
addi_script.write_text(f"""
|
||||
addi_script.write_text(
|
||||
f"""
|
||||
create database 'localhost:{tmp_db}' user {act.db.user} password '{act.db.password}';
|
||||
|
||||
recreate view v_check as
|
||||
@ -154,8 +155,10 @@ def test_1(act: Action, addi_script: Path, main_script: Path, tmp_db: Path):
|
||||
rollback;
|
||||
|
||||
drop database;
|
||||
""")
|
||||
main_script.write_text(f"""
|
||||
"""
|
||||
)
|
||||
main_script.write_text(
|
||||
f"""
|
||||
set list on;
|
||||
connect '{act.db.dsn}' user {act.db.user} password '{act.db.password}';
|
||||
recreate view v_check as
|
||||
@ -211,8 +214,9 @@ def test_1(act: Action, addi_script: Path, main_script: Path, tmp_db: Path):
|
||||
|
||||
select 'keep_tran: turned_off' as msg, v.* from v_check v;
|
||||
commit;
|
||||
""")
|
||||
"""
|
||||
)
|
||||
# Check
|
||||
act.expected_stdout = expected_stdout
|
||||
act.isql(switches=['-q'], input_file=main_script)
|
||||
act.isql(switches = ['-q'], input_file = main_script, connect_db = False, combine_output = True)
|
||||
assert act.clean_stdout == act.clean_expected_stdout
|
||||
|
Loading…
Reference in New Issue
Block a user