3 #text |
request = <SubRequest 'tmp_user' for <Function test_1>>
@pytest.fixture
def user_fixture(request: pytest.FixtureRequest) -> User:
> with User(request.getfixturevalue(db_fixture_name), name=name, password=password,
plugin=plugin, charset=charset, active=active, tags=tags,
first_name=first_name, middle_name=middle_name, last_name=last_name,
admin=admin, do_not_create=do_not_create) as user:
src/firebird/qa/plugin.py:1242:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <firebird.qa.plugin.User pytest object at [hex]>
def __enter__(self) -> User:
if self.__create:
> self.create()
src/firebird/qa/plugin.py:1067:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = Connection[68]
def commit(self, *, retaining: bool=False) -> None:
"""Commits the transaction managed by `.main_transaction`.
Arguments:
retaining: When True, the transaction context is retained after commit.
"""
assert self._att is not None
> self.main_transaction.commit(retaining=retaining)
../lib/python3.11/site-packages/firebird/driver/core.py:1907:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <firebird.driver.core.TransactionManager pytest object at [hex]>
def commit(self, *, retaining: bool=False) -> None:
"""Commits the transaction managed by this instance.
Arguments:
retaining: When True, the transaction context is retained after commit.
"""
assert not self.__closed
assert self.is_active()
if retaining:
self._tra.commit_retaining()
else:
self._close_cursors()
> self._tra.commit()
../lib/python3.11/site-packages/firebird/driver/core.py:2463:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <firebird.driver.interfaces.iTransaction_v3 pytest object at [hex]>
def commit(self) -> None:
"Replaces `isc_commit_transaction()`"
self.vtable.deprecatedCommit(self, self.status)
> self._check()
../lib/python3.11/site-packages/firebird/driver/interfaces.py:429:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <firebird.driver.interfaces.iTransaction_v3 pytest object at [hex]>
def _check(self) -> None:
state = self.status.get_state()
if StateFlag.ERRORS in state:
> raise self.__report(DatabaseError, self.status.get_errors())
E firebird.driver.types.DatabaseError: record not found for user: TMP$C0304
../lib/python3.11/site-packages/firebird/driver/interfaces.py:113: DatabaseError
|