8000 Added/Updated tests\bugs\core_3502_test.py: Added subst to suppress o… · FirebirdSQL/firebird-qa@4b439a0 · GitHub
[go: up one dir, main page]

Skip to content

Commit 4b439a0

Browse files
committed
Added/Updated tests\bugs\core_3502_test.py: Added subst to suppress output: it is enough to display error message w/o concrete coulmn name for this test. Checked on 6.0.0.876; 5.0.3.1668; 4.0.6.3214; 3.0.13.33813.
1 parent 8ed2e77 commit 4b439a0

File tree

1 file changed

+15
-17
lines changed

1 file changed

+15
-17
lines changed

tests/bugs/core_3502_test.py

Lines changed: 15 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -7,17 +7,19 @@
77
DESCRIPTION:
88
JIRA: CORE-3502
99
FBTEST: bugs.core_3502
10+
NOTES:
11+
[27.06.2025] pzotov
12+
Added subst to suppress output: it is enough to display error message w/o concrete coulmn name for this test.
13+
14+
Checked on 6.0.0.876; 5.0.3.1668; 4.0.6.3214; 3.0.13.33813.
1015
"""
1116

1217
import pytest
1318
from firebird.qa import *
1419

15-
init_script = """
16-
set autoddl on;
17-
commit;
18-
create or alter procedure p as begin end;
19-
commit;
20+
db = db_factory()
2021

22+
test_script = """
2123
create or alter view v (id) as select rdb$relation_id from rdb$database;
2224
commit;
2325
@@ -29,29 +31,25 @@
2931
end^
3032
set term ;^
3133
commit;
32-
"""
3334
34-
db = db_factory(init=init_script)
35-
36-
test_script = """
3735
execute procedure p;
3836
commit;
37+
3938
drop view v;
4039
"""
4140

42-
act = isql_act('db', test_script)
41+
act = isql_act('db', test_script, substitutions = [('(-)?COLUMN .*', 'COLUMN *')])
4342

44-
expected_stderr = """
43+
expected_stdout = """
4544
Statement failed, SQLSTATE = 42000
4645
unsuccessful metadata update
4746
-cannot delete
48-
-COLUMN V.ID
47+
COLUMN *
4948
-there are 1 dependencies
5049
"""
5150

52-
@pytest.mark.version('>=3')
51+
@pytest.mark.version('>=3.0')
5352
def test_1(act: Action):
54-
act.expected_stderr = expected_stderr
55-
act.execute()
56-
assert act.clean_stderr == act.clean_expected_stderr
57-
53+
act.expected_stdout = expected_stdout
54+
act.execute(combine_output = True)
55+
assert act.clean_stdout == act.clean_expected_stdout

0 commit comments

Comments
 (0)
0