mirror of
https://github.com/FirebirdSQL/firebird-qa.git
synced 2025-01-22 13:33:07 +01:00
Added/Updated tests\bugs\core_6286_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
b0b59e9aab
commit
5a94f3bca4
@ -3,13 +3,17 @@
|
||||
"""
|
||||
ID: issue-6528
|
||||
ISSUE: 6528
|
||||
TITLE: Make usage of TIMESTAMP/TIME WITH TIME ZONE convenient for users when appropriate
|
||||
ICU library is not installed on the client side
|
||||
TITLE: Make usage of TIMESTAMP/TIME WITH TIME ZONE convenient for users when appropriate ICU library is not installed on the client side
|
||||
DESCRIPTION:
|
||||
Test only verifies ability to use 'EXTENDED' clause in SET BIND statement.
|
||||
We can not simulate absense of appropriate ICU library and for this reason values of time/timestamp are suppressednot checked.
|
||||
Test only verifies ability to use 'EXTENDED' clause in SET BIND statement.
|
||||
We can not simulate absense of appropriate ICU library and for this reason values of time/timestamp are suppressednot checked.
|
||||
JIRA: CORE-6286
|
||||
FBTEST: bugs.core_6286
|
||||
NOTES:
|
||||
[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 pytest
|
||||
@ -27,7 +31,7 @@ test_script = """
|
||||
select timestamp '2018-12-31 12:31:42.543 Pacific/Fiji' as "check_bind_timestamp_with_zone_to_extended" from rdb$database;
|
||||
"""
|
||||
|
||||
act = isql_act('db', test_script, substitutions=[('^((?!(sqltype|extended)).)*$', ''),
|
||||
act = isql_act('db', test_script, substitutions=[('^((?!(SQLSTATE|sqltype|extended)).)*$', ''),
|
||||
('[ \t]+', ' ')])
|
||||
|
||||
expected_stdout = """
|
||||
@ -43,5 +47,5 @@ expected_stdout = """
|
||||
@pytest.mark.version('>=4.0.0')
|
||||
def test_1(act: Action):
|
||||
act.expected_stdout = expected_stdout
|
||||
act.execute()
|
||||
act.execute(combine_output = True)
|
||||
assert act.clean_stdout == act.clean_expected_stdout
|
||||
|
Loading…
Reference in New Issue
Block a user