File tree Expand file tree Collapse file tree 1 file changed +15
-5
lines changed Expand file tree Collapse file tree 1 file changed +15
-5
lines changed Original file line number Diff line number Diff line change 7
7
DESCRIPTION:
8
8
JIRA: CORE-3338
9
9
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.
10
16
"""
11
17
12
18
import pytest
29
35
30
36
act = isql_act ('db' , test_script )
31
37
32
- expected_stdout = """
38
+ expected_out_5x = """
33
39
PLAN (T INDEX (T_N2_COALESCE))
34
40
PLAN (T INDEX (T_N2_DECODE))
35
41
"""
36
42
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' )
38
49
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 )
41
52
assert act .clean_stdout == act .clean_expected_stdout
42
-
You can’t perform that action at this time.
0 commit comments