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_04.py

33 lines
777 B
Python

#coding:utf-8
"""
ID: create-database-04
TITLE: Create database: with PAGE_SIZE=2048: check actual size of page in the created database.
DESCRIPTION:
FBTEST: functional.database.create.04
"""
import pytest
from firebird.qa import *
db = db_factory(page_size=2048)
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 4096
"""
@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