6
0
mirror of https://github.com/FirebirdSQL/firebird-qa.git synced 2025-01-22 13:33:07 +01:00

Added/Updated tests\bugs\core_6438_test.py: added 'combine_output = True' in order to see problem details in the final HTML report. Fixed uninitialized variables.

This commit is contained in:
pavel-zotov 2023-05-21 23:47:48 +03:00
parent 5a5d67e732
commit 18b9adfa86

View File

@ -24,7 +24,8 @@ txt_len: 65533
@pytest.mark.version('>=4.0') @pytest.mark.version('>=4.0')
def test_1(act: Action, capsys): def test_1(act: Action, capsys):
data = '1' * 65533 data = '1' * 65533
act.isql(switches=[], input=f'''select '{data}' as " ", 1 as " " from rdb$database;''') act.isql(switches=[], input=f'''select '{data}' as " ", 1 as " " from rdb$database;''', combine_output = True)
hdr_len = txt_len = 0
for line in act.stdout.splitlines(): for line in act.stdout.splitlines():
if line.startswith('='): if line.startswith('='):
hdr_len = len(line.split()[0]) hdr_len = len(line.split()[0])