mirror of
https://github.com/FirebirdSQL/firebird-qa.git
synced 2025-01-22 13:33:07 +01:00
Added pytest.mark.intl to have ability filtering these files if only QA-run related to non-ascii data is needed.
This commit is contained in:
parent
0dece2247f
commit
20af1b6410
@ -274,6 +274,7 @@ expected_stdout_2 = """
|
||||
Records affected: 0
|
||||
"""
|
||||
|
||||
@pytest.mark.intl
|
||||
@pytest.mark.version('>=4.0')
|
||||
def test_2(act_2: Action):
|
||||
act_2.expected_stdout = expected_stdout_2
|
||||
|
@ -22,6 +22,7 @@ db = db_factory(init=init_script)
|
||||
|
||||
act = python_act('db')
|
||||
|
||||
@pytest.mark.intl
|
||||
@pytest.mark.version('>=2.1')
|
||||
def test_1(act: Action):
|
||||
with act.db.connect() as con:
|
||||
|
@ -57,6 +57,7 @@ where pr.rdb$procedure_source containing '1'
|
||||
and pr.rdb$procedure_name = upper('sp_test');
|
||||
'''
|
||||
|
||||
@pytest.mark.intl
|
||||
@pytest.mark.version('>=3')
|
||||
def test_1(act: Action, tmp_file: Path):
|
||||
tmp_file.write_bytes(sql_txt.encode('cp1251'))
|
||||
|
@ -88,6 +88,7 @@ expected_stdout = """
|
||||
RDB$COLLATION_NAME вид прописи
|
||||
"""
|
||||
|
||||
@pytest.mark.intl
|
||||
@pytest.mark.version('>=3')
|
||||
def test_1(act: Action, tmp_file: Path):
|
||||
tmp_file.write_bytes(sql_txt.encode('cp1251'))
|
||||
|
@ -45,6 +45,7 @@ expected_stdout = """
|
||||
Records affected: 1
|
||||
"""
|
||||
|
||||
@pytest.mark.intl
|
||||
@pytest.mark.version('>=3')
|
||||
def test_1(act: Action):
|
||||
non_ascii_query = "select 'gång' as non_ascii_literal from rdb$database"
|
||||
|
@ -22,6 +22,7 @@ db = db_factory(init=init_script)
|
||||
|
||||
act = python_act('db')
|
||||
|
||||
@pytest.mark.intl
|
||||
@pytest.mark.version('>=3')
|
||||
def test_1(act: Action):
|
||||
with act.db.connect(charset='CP943C') as con:
|
||||
|
@ -2267,6 +2267,7 @@ expected_stdout_2 = """
|
||||
S_WHITE_SPACE 0
|
||||
"""
|
||||
|
||||
@pytest.mark.intl
|
||||
@pytest.mark.version('>=4.0')
|
||||
def test_2(act_2: Action):
|
||||
act_2.expected_stdout = expected_stdout_2
|
||||
|
@ -32,6 +32,7 @@ ASCII_VAL
|
||||
|
||||
"""
|
||||
|
||||
@pytest.mark.intl
|
||||
@pytest.mark.version('>=3')
|
||||
def test_1(act: Action):
|
||||
act.expected_stdout = expected_stdout
|
||||
|
@ -203,6 +203,7 @@ expected_stdout = """
|
||||
TRIMMED_CHAR_LEN 11
|
||||
"""
|
||||
|
||||
@pytest.mark.intl
|
||||
@pytest.mark.version('>=3.0')
|
||||
def test_1(act: Action):
|
||||
act.expected_stdout = expected_stdout
|
||||
|
@ -63,6 +63,7 @@ expected_stdout = """
|
||||
Records affected: 0
|
||||
"""
|
||||
|
||||
@pytest.mark.intl
|
||||
@pytest.mark.version('>=4.0')
|
||||
def test_1(act: Action):
|
||||
act.expected_stdout = expected_stdout
|
||||
|
@ -3,8 +3,7 @@
|
||||
"""
|
||||
ID: issue-6652
|
||||
ISSUE: 6652
|
||||
TITLE: Error message "expected length N, actual M" contains wrong value of M when
|
||||
charset UTF8 is used in the field declaration of a table
|
||||
TITLE: Error message "expected length N, actual M" contains wrong value of M when charset UTF8 is used in the field declaration of a table
|
||||
DESCRIPTION:
|
||||
All attempts to create/alter table with not-null column with size that not enough space to fit default value must fail.
|
||||
Length of such column can be declared either directly or via domain - and both of these ways must fail.
|
||||
@ -133,6 +132,7 @@ expected_stderr = """
|
||||
-expected length 1, actual 8
|
||||
"""
|
||||
|
||||
@pytest.mark.intl
|
||||
@pytest.mark.version('>=4.0')
|
||||
def test_1(act: Action):
|
||||
act.expected_stderr = expected_stderr
|
||||
|
@ -67,6 +67,7 @@ expected_stdout = """
|
||||
Records affected: 1
|
||||
"""
|
||||
|
||||
@pytest.mark.intl
|
||||
@pytest.mark.version('>=4.0')
|
||||
def test_1(act: Action):
|
||||
act.expected_stdout = expected_stdout
|
||||
|
@ -99,6 +99,7 @@ expected_stderr = """
|
||||
-Integer overflow. The result of an integer operation caused the most significant bit of the result to carry.
|
||||
"""
|
||||
|
||||
@pytest.mark.intl
|
||||
@pytest.mark.version('>=5.0')
|
||||
def test_1(act: Action):
|
||||
act.expected_stdout = expected_stdout
|
||||
|
Loading…
Reference in New Issue
Block a user