6
0
mirror of https://github.com/FirebirdSQL/firebird-qa.git synced 2025-01-22 21:43:06 +01:00
firebird-qa/tests/functional/index/create/test_07.py

31 lines
631 B
Python

#coding:utf-8
"""
ID: index.create-07
TITLE: CREATE INDEX - Multi column
DESCRIPTION:
FBTEST: functional.index.create.07
"""
import pytest
from firebird.qa import *
init_script = """CREATE TABLE t( a INTEGER, b INT, c INT, d INT);
commit;
"""
db = db_factory(init=init_script)
test_script = """CREATE INDEX test ON t(a,b,c,d);
SHOW INDEX test;"""
act = isql_act('db', test_script)
expected_stdout = """TEST INDEX ON T(A, B, C, D)"""
@pytest.mark.version('>=3')
def test_1(act: Action):
act.expected_stdout = expected_stdout
act.execute()
assert act.clean_stdout == act.clean_expected_stdout