HA
Size: a a a
HA
mf
HA
mf
af
HA
mf
HA
СС
S
import pytest
from _pytest.python import Module
@pytest.hookimpl(tryfirst=True)
def pytest_collection_finish(session):
for item in session.items:
first, second = item._nodeid.split('::', 1)
item._nodeid = 'my custom module name' + '::' + second # replace in tests execution report
while item:
if isinstance(item, Module):
item.name = 'my custom module name' # replace in tests collection report
item = item.parent
af
import pytest
from _pytest.python import Module
@pytest.hookimpl(tryfirst=True)
def pytest_collection_finish(session):
for item in session.items:
first, second = item._nodeid.split('::', 1)
item._nodeid = 'my custom module name' + '::' + second # replace in tests execution report
while item:
if isinstance(item, Module):
item.name = 'my custom module name' # replace in tests collection report
item = item.parent
R

async awaitS
await pool.connect()S
S
pool.query(‘BEGIN’); не падает потому что не стоит await и фактически этот вызов не ждетсяR
S
SB
ДБ
S