mirror of
https://github.com/FirebirdSQL/firebird-qa.git
synced 2025-01-22 21:43:06 +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:
parent
70c619e52c
commit
bf0991cf79
@ -21,7 +21,7 @@ init_script = """
|
|||||||
|
|
||||||
db = db_factory(sql_dialect=3, init=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 = """
|
expected_stdout = """
|
||||||
CREATE GENERATOR TMP_GEN_42051 START WITH 9223372036854775807 INCREMENT -2147483647;
|
CREATE GENERATOR TMP_GEN_42051 START WITH 9223372036854775807 INCREMENT -2147483647;
|
||||||
@ -33,7 +33,5 @@ expected_stdout = """
|
|||||||
@pytest.mark.version('>=3.0')
|
@pytest.mark.version('>=3.0')
|
||||||
def test_1(act: Action):
|
def test_1(act: Action):
|
||||||
act.expected_stdout = expected_stdout
|
act.expected_stdout = expected_stdout
|
||||||
act.isql(switches=['-x'])
|
act.isql(switches=['-x'], combine_output = True)
|
||||||
assert act.clean_stdout == act.clean_expected_stdout
|
assert act.clean_stdout == act.clean_expected_stdout
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user