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

Skip to content

Commit 6fd7a2f

Browse files
committed
Added/Updated tests\bugs\core_3283_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 2478041 commit 6fd7a2f

File tree

1 file changed

+14
-4
lines changed

1 file changed

+14
-4
lines changed

tests/bugs/core_3283_test.py

Lines changed: 14 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,12 @@
77
DESCRIPTION:
88
JIRA: CORE-3283
99
FBTEST: bugs.core_3283
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
@@ -43,14 +49,18 @@
4349

4450
act = isql_act('db', test_script)
4551

46-
expected_stdout = """
52+
expected_out_5x = """
4753
PLAN SORT (JOIN (T2 INDEX (TTT_ID), T3 INDEX (TTT_ID)))
4854
PLAN (T1 INDEX (TTT_ID))
4955
"""
5056

57+
expected_out_6x = """
58+
PLAN SORT (JOIN ("T2" INDEX ("PUBLIC"."TTT_ID"), "T3" INDEX ("PUBLIC"."TTT_ID")))
59+
PLAN ("T1" INDEX ("PUBLIC"."TTT_ID"))
60+
"""
61+
5162
@pytest.mark.version('>=3')
5263
def test_1(act: Action):
53-
act.expected_stdout = expected_stdout
54-
act.execute()
64+
act.expected_stdout = expected_out_5x if act.is_version('<6') else expected_out_6x
65+
act.execute(combine_output = True)
5566
assert act.clean_stdout == act.clean_expected_stdout
56-

0 commit comments

Comments
 (0)
0