6
0
mirror of https://github.com/FirebirdSQL/firebird-qa.git synced 2025-01-22 13:33:07 +01:00

Added/Updated tests\bugs\core_4205_test.py: Added 'combine_output = True' in order to see SQLSTATE if any error occurs.

This commit is contained in:
pavel-zotov 2023-12-12 20:20:06 +03:00
parent 70c619e52c
commit bf0991cf79

View File

@ -21,7 +21,7 @@ init_script = """
db = db_factory(sql_dialect=3, init=init_script)
act = python_act('db', substitutions=[('^((?!CREATE GENERATOR).)*$', '')])
act = python_act('db', substitutions=[('^((?!(SQLSTATE|CREATE GENERATOR)).)*$', '')])
expected_stdout = """
CREATE GENERATOR TMP_GEN_42051 START WITH 9223372036854775807 INCREMENT -2147483647;
@ -33,7 +33,5 @@ expected_stdout = """
@pytest.mark.version('>=3.0')
def test_1(act: Action):
act.expected_stdout = expected_stdout
act.isql(switches=['-x'])
act.isql(switches=['-x'], combine_output = True)
assert act.clean_stdout == act.clean_expected_stdout