From 20af1b64103fa808a8a7a44c9ada02b6013642c6 Mon Sep 17 00:00:00 2001 From: pavel-zotov Date: Thu, 31 Oct 2024 13:32:10 +0300 Subject: [PATCH] Added pytest.mark.intl to have ability filtering these files if only QA-run related to non-ascii data is needed. --- tests/bugs/core_0479_test.py | 1 + tests/bugs/core_0967_test.py | 1 + tests/bugs/core_1347_test.py | 1 + tests/bugs/core_1378_test.py | 1 + tests/bugs/core_2531_test.py | 1 + tests/bugs/core_2651_test.py | 1 + tests/bugs/core_2952_test.py | 1 + tests/bugs/core_3227_test.py | 1 + tests/bugs/core_3234_test.py | 1 + tests/bugs/core_4739_test.py | 1 + tests/bugs/core_6414_test.py | 4 ++-- tests/bugs/core_6419_test.py | 1 + tests/bugs/gh_6798_test.py | 1 + 13 files changed, 14 insertions(+), 2 deletions(-) diff --git a/tests/bugs/core_0479_test.py b/tests/bugs/core_0479_test.py index 2c2a636c..04b98453 100644 --- a/tests/bugs/core_0479_test.py +++ b/tests/bugs/core_0479_test.py @@ -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 diff --git a/tests/bugs/core_0967_test.py b/tests/bugs/core_0967_test.py index 0cbe2091..bbc48172 100644 --- a/tests/bugs/core_0967_test.py +++ b/tests/bugs/core_0967_test.py @@ -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: diff --git a/tests/bugs/core_1347_test.py b/tests/bugs/core_1347_test.py index fd1fecaf..2c7a00cb 100644 --- a/tests/bugs/core_1347_test.py +++ b/tests/bugs/core_1347_test.py @@ -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')) diff --git a/tests/bugs/core_1378_test.py b/tests/bugs/core_1378_test.py index db6559c8..58280003 100644 --- a/tests/bugs/core_1378_test.py +++ b/tests/bugs/core_1378_test.py @@ -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')) diff --git a/tests/bugs/core_2531_test.py b/tests/bugs/core_2531_test.py index cbff7c60..4913c6d4 100644 --- a/tests/bugs/core_2531_test.py +++ b/tests/bugs/core_2531_test.py @@ -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" diff --git a/tests/bugs/core_2651_test.py b/tests/bugs/core_2651_test.py index 05acc294..61c0a329 100644 --- a/tests/bugs/core_2651_test.py +++ b/tests/bugs/core_2651_test.py @@ -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: diff --git a/tests/bugs/core_2952_test.py b/tests/bugs/core_2952_test.py index 87d10423..3574b29c 100644 --- a/tests/bugs/core_2952_test.py +++ b/tests/bugs/core_2952_test.py @@ -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 diff --git a/tests/bugs/core_3227_test.py b/tests/bugs/core_3227_test.py index f3ea9b00..39f30fc7 100644 --- a/tests/bugs/core_3227_test.py +++ b/tests/bugs/core_3227_test.py @@ -32,6 +32,7 @@ ASCII_VAL """ +@pytest.mark.intl @pytest.mark.version('>=3') def test_1(act: Action): act.expected_stdout = expected_stdout diff --git a/tests/bugs/core_3234_test.py b/tests/bugs/core_3234_test.py index 85f2d3ff..b8f5f182 100644 --- a/tests/bugs/core_3234_test.py +++ b/tests/bugs/core_3234_test.py @@ -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 diff --git a/tests/bugs/core_4739_test.py b/tests/bugs/core_4739_test.py index 90a330f0..98238d77 100644 --- a/tests/bugs/core_4739_test.py +++ b/tests/bugs/core_4739_test.py @@ -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 diff --git a/tests/bugs/core_6414_test.py b/tests/bugs/core_6414_test.py index 3046673e..6d887286 100644 --- a/tests/bugs/core_6414_test.py +++ b/tests/bugs/core_6414_test.py @@ -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 diff --git a/tests/bugs/core_6419_test.py b/tests/bugs/core_6419_test.py index aee8b911..5acb7ddd 100644 --- a/tests/bugs/core_6419_test.py +++ b/tests/bugs/core_6419_test.py @@ -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 diff --git a/tests/bugs/gh_6798_test.py b/tests/bugs/gh_6798_test.py index 1f51e488..daa17550 100644 --- a/tests/bugs/gh_6798_test.py +++ b/tests/bugs/gh_6798_test.py @@ -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