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

32 lines
779 B
Python

#coding:utf-8
"""
ID: create-database-07
TITLE: Create database: with PAGE_SIZE=16384: check actual size of page in the created database.
DESCRIPTION:
FBTEST: functional.database.create.07
"""
import pytest
from firebird.qa import *
db = db_factory(page_size=16384)
test_script = """
set list on;
select mon$page_size as page_size from mon$database;
"""
act = isql_act('db', test_script, substitutions=[('^((?!PAGE_SIZE).)*$', '')])
expected_stdout = """
PAGE_SIZE 16384
"""
@pytest.mark.skip("Replaced with functional/database/create/test_00.py")
@pytest.mark.version('>=3')
def test_1(act: Action):
act.expected_stdout = expected_stdout
act.execute()
assert act.clean_stdout == act.clean_expected_stdout