2021-04-26 20:07:00 +02:00
|
|
|
#coding:utf-8
|
2022-01-22 21:59:15 +01:00
|
|
|
|
|
|
|
"""
|
|
|
|
ID: issue-3562
|
|
|
|
ISSUE: 3562
|
|
|
|
TITLE: page 0 is of wrong type (expected 6, found 1)
|
|
|
|
DESCRIPTION:
|
|
|
|
JIRA: CORE-3188
|
2022-02-02 15:46:19 +01:00
|
|
|
FBTEST: bugs.core_3188
|
2022-01-22 21:59:15 +01:00
|
|
|
"""
|
2021-04-26 20:07:00 +02:00
|
|
|
|
|
|
|
import pytest
|
2021-11-16 19:44:53 +01:00
|
|
|
from difflib import unified_diff
|
2022-01-22 21:59:15 +01:00
|
|
|
from firebird.qa import *
|
2021-04-26 20:07:00 +02:00
|
|
|
|
2022-01-22 21:59:15 +01:00
|
|
|
db = db_factory()
|
2021-04-26 20:07:00 +02:00
|
|
|
|
2022-01-22 21:59:15 +01:00
|
|
|
act = python_act('db')
|
2021-04-26 20:07:00 +02:00
|
|
|
|
2022-01-22 21:59:15 +01:00
|
|
|
@pytest.mark.version('>=3')
|
|
|
|
def test_1(act: Action):
|
|
|
|
with act.connect_server() as srv:
|
2021-11-16 19:44:53 +01:00
|
|
|
srv.info.get_log()
|
|
|
|
log_before = srv.readlines()
|
2022-01-22 21:59:15 +01:00
|
|
|
with act.db.connect() as con1, act.db.connect() as con2:
|
2021-11-16 19:44:53 +01:00
|
|
|
c1 = con1.cursor()
|
|
|
|
c1.execute("create table test(id int primary key)")
|
|
|
|
con1.commit()
|
|
|
|
#
|
|
|
|
c2 = con2.cursor()
|
|
|
|
c2.execute('drop table test')
|
|
|
|
con2.commit()
|
|
|
|
srv.info.get_log()
|
|
|
|
log_after = srv.readlines()
|
2022-01-22 21:59:15 +01:00
|
|
|
assert list(unified_diff(log_before, log_after)) == []
|