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

32 lines
775 B
Python
Raw Normal View History

2021-04-26 20:07:00 +02:00
#coding:utf-8
2022-01-24 20:27:02 +01:00
"""
ID: issue-5063
ISSUE: 5063
TITLE: Can not create user with non-ascii (multi-byte) characters in it's name
DESCRIPTION:
NOTES:
[24.11.2021] pcisar
1. This problem is covered by test for #5048 (CORE-4743) as side effect
2. For sake of completness, it was reimplemented by simply using
user_factory fixture.
JIRA: CORE-4760
FBTEST: bugs.core_4760
2022-01-24 20:27:02 +01:00
"""
2021-04-26 20:07:00 +02:00
2022-01-24 20:27:02 +01:00
import pytest
from firebird.qa import *
2021-04-26 20:07:00 +02:00
2022-01-24 20:27:02 +01:00
db = db_factory(charset='UTF8')
2021-11-26 19:20:43 +01:00
2022-01-24 20:27:02 +01:00
non_ascii_user = user_factory('db', name='"Εὐκλείδης"', password='123')
2021-11-26 19:20:43 +01:00
2022-01-24 20:27:02 +01:00
act = python_act('db')
2021-04-26 20:07:00 +02:00
@pytest.mark.version('>=4.0')
2022-01-24 20:27:02 +01:00
def test_1(act: Action, non_ascii_user: User):
with act.db.connect(user=non_ascii_user.name, password=non_ascii_user.password) as con:
2021-11-26 19:20:43 +01:00
pass
2021-04-26 20:07:00 +02:00