6
0
mirror of https://github.com/FirebirdSQL/firebird-qa.git synced 2025-01-23 05:53:06 +01:00
firebird-qa/tests/functional/dml/delete/test_01.py

27 lines
467 B
Python

#coding:utf-8
"""
ID: dml.delete-01
FBTEST: functional.dml.delete.01
TITLE: DELETE
DESCRIPTION:
"""
import pytest
from firebird.qa import db_factory, isql_act, Action
init_script = """CREATE TABLE tb(id INT);
INSERT INTO tb VALUES(10);
COMMIT;"""
db = db_factory(init=init_script)
test_script = """DELETE FROM tb;
SELECT * FROM tb;"""
act = isql_act('db', test_script)
@pytest.mark.version('>=3')
def test_1(act: Action):
act.execute()