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

27 lines
467 B
Python
Raw Normal View History

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