mirror of
https://github.com/FirebirdSQL/firebird-qa.git
synced 2025-01-22 13:33:07 +01:00
Added pytest.mark.intl to have ability filtering these files if only QA-run related to non-ascii data is needed.
This commit is contained in:
parent
19c51597e5
commit
0dece2247f
@ -188,6 +188,7 @@ non_ascii_ddl='''
|
||||
|
||||
tmp_file = temp_file('tmp_0986_non_ascii_ddl.sql')
|
||||
|
||||
@pytest.mark.intl
|
||||
@pytest.mark.version('>=3.0')
|
||||
def test_1(act: Action, tmp_file: Path):
|
||||
tmp_file.write_bytes(non_ascii_ddl.encode('cp1251'))
|
||||
|
@ -261,6 +261,7 @@ expected_stdout = """
|
||||
Records affected: 30
|
||||
"""
|
||||
|
||||
@pytest.mark.intl
|
||||
@pytest.mark.version('>=4.0')
|
||||
def test_1(act: Action):
|
||||
act.expected_stdout = expected_stdout
|
||||
|
@ -101,6 +101,7 @@ expected_stdout = """
|
||||
case_SENSITIVE_distinct_gr_4 1
|
||||
"""
|
||||
|
||||
@pytest.mark.intl
|
||||
@pytest.mark.version('>=3')
|
||||
def test_1(act: Action):
|
||||
act.expected_stdout = expected_stdout
|
||||
|
@ -48,6 +48,7 @@ expected_stdout = """
|
||||
EXECUTE_STTM_SELECT милан
|
||||
"""
|
||||
|
||||
@pytest.mark.intl
|
||||
@pytest.mark.version('>=3.0')
|
||||
def test_1(act: Action):
|
||||
act.expected_stdout = expected_stdout
|
||||
|
@ -50,6 +50,7 @@ expected_stdout_b = """
|
||||
VARC1_ASCII A.
|
||||
"""
|
||||
|
||||
@pytest.mark.intl
|
||||
@pytest.mark.version('>=3.0')
|
||||
def test_1(act: Action):
|
||||
act.script = test_script
|
||||
|
@ -74,6 +74,7 @@ expected_stdout = """
|
||||
CU FAÿ
|
||||
"""
|
||||
|
||||
@pytest.mark.intl
|
||||
@pytest.mark.platform('Windows')
|
||||
@pytest.mark.version('>=3')
|
||||
def test_1(act: Action):
|
||||
|
@ -164,6 +164,7 @@ expected_stdout = """
|
||||
EQUAL 1
|
||||
"""
|
||||
|
||||
@pytest.mark.intl
|
||||
@pytest.mark.version('>=3.0')
|
||||
def test_1(act: Action):
|
||||
act.expected_stdout = expected_stdout
|
||||
|
@ -48,6 +48,7 @@ After line 4 in file /tmp/pytest-of-pcisar/pytest-559/test_10/test_script.sql
|
||||
|
||||
script_file = temp_file('test_script.sql')
|
||||
|
||||
@pytest.mark.intl
|
||||
@pytest.mark.version('>=3')
|
||||
def test_1(act: Action, script_file: Path):
|
||||
script_file.write_text("""
|
||||
|
@ -37,6 +37,7 @@ tmp_role2 = role_factory('db', name = '"Groß"')
|
||||
|
||||
act = python_act('db')
|
||||
|
||||
@pytest.mark.intl
|
||||
@pytest.mark.version('>=3.0')
|
||||
def test_1(act: Action, tmp_user: User, tmp_role1: Role, tmp_role2: Role, capsys):
|
||||
init_script = f"""
|
||||
|
@ -83,6 +83,7 @@ expected_stderr = """
|
||||
- Russian: Новый остаток будет меньше нуля (-6)
|
||||
"""
|
||||
|
||||
@pytest.mark.intl
|
||||
@pytest.mark.version('>=3.0')
|
||||
def test_1(act: Action):
|
||||
act.expected_stderr = expected_stderr
|
||||
|
@ -62,6 +62,7 @@ expected_stdout = """
|
||||
é alguém do Brasil
|
||||
"""
|
||||
|
||||
@pytest.mark.intl
|
||||
@pytest.mark.version('>=3.0')
|
||||
def test_1(act: Action, user_a: User, user_b: User):
|
||||
act.expected_stdout = expected_stdout
|
||||
|
@ -835,6 +835,7 @@ expected_stdout = """
|
||||
OVERLAY_UTF8_TO_ASCII_LO 1
|
||||
"""
|
||||
|
||||
@pytest.mark.intl
|
||||
@pytest.mark.version('>=3')
|
||||
def test_1(act: Action):
|
||||
act.expected_stdout = expected_stdout
|
||||
|
@ -167,6 +167,7 @@ expected_stdout = """
|
||||
privilege:exec : YES
|
||||
"""
|
||||
|
||||
@pytest.mark.intl
|
||||
@pytest.mark.version('>=4.0')
|
||||
def test_1(act: Action, non_acii_user: User, test_role: Role, capsys):
|
||||
act.isql(switches=['-b', '-q'], input=ddl_script)
|
||||
|
@ -39,6 +39,7 @@ expected_stdout=f"""
|
||||
WHOAMI : {NON_ASCII_NAME}
|
||||
"""
|
||||
|
||||
@pytest.mark.intl
|
||||
@pytest.mark.version('>=4.0')
|
||||
def test_1(act: Action, non_ascii_user: User, capsys):
|
||||
with act.db.connect(user=non_ascii_user.name, password=non_ascii_user.password) as con:
|
||||
|
@ -34,6 +34,7 @@ expected_stdout = """
|
||||
C_LEN_UTF8_MIXED 16383
|
||||
"""
|
||||
|
||||
@pytest.mark.intl
|
||||
@pytest.mark.version('>=3.0')
|
||||
def test_1(act: Action):
|
||||
script_file = Path(act.files_dir / 'core_4881.zip', at='core_4881_script.sql')
|
||||
|
@ -62,6 +62,7 @@ remove_metadata = """
|
||||
r.rdb$system_flag is distinct from 1;
|
||||
"""
|
||||
|
||||
@pytest.mark.intl
|
||||
@pytest.mark.version('>=3.0')
|
||||
def test_1(act: Action):
|
||||
#
|
||||
|
@ -45,6 +45,7 @@ test_script = """
|
||||
|
||||
script_file = temp_file('test-script.sql')
|
||||
|
||||
@pytest.mark.intl
|
||||
@pytest.mark.version('>=4.0')
|
||||
def test_1(act: Action, script_file: Path):
|
||||
script_file.write_text(test_script, encoding='cp1251')
|
||||
|
@ -77,6 +77,7 @@ expected_stderr_isql = """
|
||||
|
||||
expected_stdout_trace = test_sql.replace('set list on;', '').replace(';','')
|
||||
|
||||
@pytest.mark.intl
|
||||
@pytest.mark.trace
|
||||
@pytest.mark.version('>=3.0.6')
|
||||
@pytest.mark.platform('Windows')
|
||||
|
@ -56,6 +56,7 @@ expected_stdout = """
|
||||
N06 |€|
|
||||
"""
|
||||
|
||||
@pytest.mark.intl
|
||||
@pytest.mark.version('>=4.0')
|
||||
def test_1(act: Action):
|
||||
act.expected_stdout = expected_stdout
|
||||
|
@ -44,6 +44,7 @@ expected_stdout = """
|
||||
RES 1
|
||||
"""
|
||||
|
||||
@pytest.mark.intl
|
||||
@pytest.mark.version('>=3.0.3')
|
||||
def test_1(act: Action):
|
||||
act.expected_stdout = expected_stdout
|
||||
|
@ -32,6 +32,7 @@ expected_stdout = """
|
||||
|
||||
test_script = temp_file('test_script.sql')
|
||||
|
||||
@pytest.mark.intl
|
||||
@pytest.mark.version('>=3.0.4')
|
||||
def test_1(act: Action, test_script: Path):
|
||||
if act.is_version('<4'):
|
||||
|
@ -76,6 +76,7 @@ test_script = """
|
||||
rollback;
|
||||
"""
|
||||
|
||||
@pytest.mark.intl
|
||||
@pytest.mark.version('>=4.0')
|
||||
def test_1(act: Action):
|
||||
act.expected_stdout = expected_stdout
|
||||
|
@ -36,6 +36,7 @@ ddl_script = """
|
||||
select rdb$role_name as r_name from rdb$roles where rdb$system_flag is distinct from 1;
|
||||
"""
|
||||
|
||||
@pytest.mark.intl
|
||||
@pytest.mark.version('>=4.0')
|
||||
def test_1(act: Action):
|
||||
act.isql(switches=[], input=ddl_script)
|
||||
|
@ -91,6 +91,7 @@ expected_stdout = """
|
||||
MSG Passed
|
||||
"""
|
||||
|
||||
@pytest.mark.intl
|
||||
@pytest.mark.version('>=3.0')
|
||||
def test_1(act: Action):
|
||||
act.expected_stdout = expected_stdout
|
||||
|
@ -25,6 +25,7 @@ db = db_factory()
|
||||
|
||||
act = python_act('db')
|
||||
|
||||
@pytest.mark.intl
|
||||
@pytest.mark.version('>=5.0')
|
||||
def test_1(act: Action, capsys):
|
||||
with act.db.connect(charset='iso8859_1') as con:
|
||||
|
@ -161,6 +161,7 @@ expected_stdout = """
|
||||
ánoc
|
||||
"""
|
||||
|
||||
@pytest.mark.intl
|
||||
@pytest.mark.version('>=6.0.0')
|
||||
def test_1(act: Action):
|
||||
act.expected_stdout = expected_stdout
|
||||
|
Loading…
Reference in New Issue
Block a user