From 9afb73b053d7d11eeaf5e33c7cd8fc86f31af88c Mon Sep 17 00:00:00 2001 From: pavel-zotov Date: Thu, 12 Sep 2024 11:57:26 +0300 Subject: [PATCH] Added/Updated tests\bugs\core_2051_test.py: Removed execution plan from expected output. Requested by dimitr. --- tests/bugs/core_2051_test.py | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/tests/bugs/core_2051_test.py b/tests/bugs/core_2051_test.py index 50321f39..9a4bfcf1 100644 --- a/tests/bugs/core_2051_test.py +++ b/tests/bugs/core_2051_test.py @@ -7,6 +7,10 @@ TITLE: Don't work subquery in COALESCE DESCRIPTION: JIRA: CORE-2051 FBTEST: bugs.core_2051 +NOTES: + [12.09.2024] pzotov + Removed execution plan from expected output. + Requested by dimitr, letters with subj 'core_2051_test', since 11.09.2024 17:16. """ import pytest @@ -28,16 +32,13 @@ test_script = """ insert into test2 values(2); commit; - set plan on; set list on; select coalesce((select t2.id from test2 t2 where t2.id = t1.id), 0) id2 from test1 t1 order by t1.id; """ -act = isql_act('db', test_script) +act = isql_act('db', test_script, substitutions = [ ('[ \t]+',' ') ]) expected_stdout = """ - PLAN (T2 INDEX (TEST2_PK)) - PLAN (T1 ORDER TEST1_PK) ID2 1 ID2 2 ID2 0 @@ -46,6 +47,6 @@ expected_stdout = """ @pytest.mark.version('>=3') def test_1(act: Action): act.expected_stdout = expected_stdout - act.execute() + act.execute(combine_output = True) assert act.clean_stdout == act.clean_expected_stdout