8000 Added/Updated tests\bugs\core_3338_test.py: Separated expected output… · FirebirdSQL/firebird-qa@51e5856 · GitHub
[go: up one dir, main page]

Skip to content

Commit 51e5856

Browse files
committed
Added/Updated tests\bugs\core_3338_test.py: Separated expected output for FB major versions prior/since 6.x. Checked on 6.0.0.876; 5.0.3.1668; 4.0.6.3214; 3.0.13.33813.
1 parent 227bb7e commit 51e5856

File tree

1 file changed

+15
-5
lines changed

1 file changed

+15
-5
lines changed

tests/bugs/core_3338_test.py

Lines changed: 15 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,12 @@
77
DESCRIPTION:
88
JIRA: CORE-3338
99
FBTEST: bugs.core_3338
10+
NOTES:
11+
[27.06.2025] pzotov
12+
Separated expected output for FB major versions prior/since 6.x.
13+
No substitutions are used to suppress schema and quotes. Discussed with dimitr, 24.06.2025 12:39.
14+
15+
Checked on 6.0.0.876; 5.0.3.1668; 4.0.6.3214; 3.0.13.33813.
1016
"""
1117

1218
import pytest
@@ -29,14 +35,18 @@
2935

3036
act = isql_act('db', test_script)
3137

32-
expected_stdout = """
38+
expected_out_5x = """
3339
PLAN (T INDEX (T_N2_COALESCE))
3440
PLAN (T INDEX (T_N2_DECODE))
3541
"""
3642

37-
@pytest.mark.version('>=3.0')
43+
expected_out_6x = """
44< 7AE2 /td>+
PLAN ("PUBLIC"."T" INDEX ("PUBLIC"."T_N2_COALESCE"))
45+
PLAN ("PUBLIC"."T" INDEX ("PUBLIC"."T_N2_DECODE"))
46+
"""
47+
48+
@pytest.mark.version('>=3')
3849
def test_1(act: Action):
39-
act.expected_stdout = expected_stdout
40-
act.execute()
50+
act.expected_stdout = expected_out_5x if act.is_version('<6') else expected_out_6x
51+
act.execute(combine_output = True)
4152
assert act.clean_stdout == act.clean_expected_stdout
42-

0 commit comments

Comments
 (0)
0