mirror of
https://github.com/FirebirdSQL/firebird-qa.git
synced 2025-01-23 22:13:05 +01:00
30 lines
599 B
Python
30 lines
599 B
Python
#coding:utf-8
|
|
|
|
"""
|
|
ID: index.create-04
|
|
TITLE: CREATE ASCENDING INDEX
|
|
DESCRIPTION:
|
|
FBTEST: functional.index.create.04
|
|
"""
|
|
|
|
import pytest
|
|
from firebird.qa import *
|
|
|
|
init_script = """CREATE TABLE t( a INTEGER);
|
|
commit;"""
|
|
|
|
db = db_factory(init=init_script)
|
|
|
|
test_script = """CREATE ASCENDING INDEX test ON t(a);
|
|
SHOW INDEX test;"""
|
|
|
|
act = isql_act('db', test_script)
|
|
|
|
expected_stdout = """TEST INDEX ON T(A)"""
|
|
|
|
@pytest.mark.version('>=3')
|
|
def test_1(act: Action):
|
|
act.expected_stdout = expected_stdout
|
|
act.execute()
|
|
assert act.clean_stdout == act.clean_expected_stdout
|