mirror of
https://github.com/FirebirdSQL/firebird-qa.git
synced 2025-02-02 10:50:42 +01:00
Added/Updated tests\bugs\core_6444_test.py: Added 'SQLSTATE' in substitutions: runtime error must not be suppressed. Added 'combine_output = True' in order to see SQLSTATE if any error occurs.
This commit is contained in:
parent
26737405f0
commit
9481ce7411
@ -11,6 +11,10 @@ NOTES:
|
|||||||
[01.12.2023] pzotov
|
[01.12.2023] pzotov
|
||||||
Currently test only checks ability to query virtual table RDB$CONFIG and SQLDA.
|
Currently test only checks ability to query virtual table RDB$CONFIG and SQLDA.
|
||||||
Records are not fetched because content of some of them depends on OS/major version and/or can change.
|
Records are not fetched because content of some of them depends on OS/major version and/or can change.
|
||||||
|
[13.12.2023] pzotov
|
||||||
|
Added 'SQLSTATE' in substitutions: runtime error must not be filtered out by '?!(...)' pattern
|
||||||
|
("negative lookahead assertion", see https://docs.python.org/3/library/re.html#regular-expression-syntax).
|
||||||
|
Added 'combine_output = True' in order to see SQLSTATE if any error occurs.
|
||||||
"""
|
"""
|
||||||
import os
|
import os
|
||||||
import pytest
|
import pytest
|
||||||
@ -23,7 +27,7 @@ test_script = """
|
|||||||
set sqlda_display on;
|
set sqlda_display on;
|
||||||
select * from rdb$config;
|
select * from rdb$config;
|
||||||
"""
|
"""
|
||||||
act = isql_act('db', test_script, substitutions=[('^((?!sqltype:|name:).)*$',''),('[ \t]+',' ')])
|
act = isql_act('db', test_script, substitutions=[('^((?!SQLSTATE|sqltype:|name:).)*$',''),('[ \t]+',' ')])
|
||||||
|
|
||||||
@pytest.mark.version('>=4.0')
|
@pytest.mark.version('>=4.0')
|
||||||
def test_1(act: Action):
|
def test_1(act: Action):
|
||||||
|
Loading…
Reference in New Issue
Block a user