2021-04-26 20:07:00 +02:00
|
|
|
#coding:utf-8
|
|
|
|
|
2022-01-21 18:49:26 +01:00
|
|
|
"""
|
|
|
|
ID: issue-3217
|
|
|
|
ISSUE: 3217
|
|
|
|
TITLE: isql shouldn't display db and user name when extracting a script
|
|
|
|
DESCRIPTION:
|
|
|
|
JIRA: CORE-2831
|
2022-02-02 15:46:19 +01:00
|
|
|
FBTEST: bugs.core_2831
|
2022-01-21 18:49:26 +01:00
|
|
|
"""
|
2021-04-26 20:07:00 +02:00
|
|
|
|
2022-01-21 18:49:26 +01:00
|
|
|
import pytest
|
|
|
|
from firebird.qa import *
|
2021-04-26 20:07:00 +02:00
|
|
|
|
2022-01-21 18:49:26 +01:00
|
|
|
db = db_factory()
|
2021-04-26 20:07:00 +02:00
|
|
|
|
2022-01-21 18:49:26 +01:00
|
|
|
act = python_act('db', substitutions=[('^((?!Database:|User:).)*$', '')])
|
2021-04-26 20:07:00 +02:00
|
|
|
|
2021-11-16 19:44:53 +01:00
|
|
|
@pytest.mark.version('>=3.0')
|
2022-01-21 18:49:26 +01:00
|
|
|
def test_1(act: Action):
|
|
|
|
act.isql(switches=['-x'])
|
|
|
|
assert act.clean_stdout == act.clean_expected_stdout
|
2021-04-26 20:07:00 +02:00
|
|
|
|