$ poetry run pytest student-tests/test_transactions.py student-tests/test_concurrency.py -s
/Users/enterxx/Library/Python/3.9/lib/python/site-packages/urllib3/__init__.py:35: NotOpenSSLWarning: urllib3 v2 only supports OpenSSL 1.1.1+, currently the 'ssl' module is compiled with 'LibreSSL 2.8.3'. See: https://github.com/urllib3/urllib3/issues/3020
  warnings.warn(
============================= test session starts ==============================
platform darwin -- Python 3.12.12, pytest-9.1.1, pluggy-1.6.0 -- /Users/enterxx/Library/Caches/pypoetry/virtualenvs/max2-TbR4RJXC-py3.12/bin/python
cachedir: .pytest_cache
rootdir: /Users/enterxx/Desktop/university/4course/mtusi2026lab2
configfile: pyproject.toml
plugins: anyio-4.15.1
collecting ... collected 4 items

student-tests/test_transactions.py::test_same_username_race_creates_exactly_one_user 
REGISTRATION RACE: {"requests": 20, "status_201": 1, "status_409": 19, "rows_in_db": 1}
PASSED
student-tests/test_transactions.py::test_failed_chat_creation_is_rolled_back PASSED
student-tests/test_transactions.py::test_successful_chat_creation_commits_all_members PASSED
student-tests/test_concurrency.py::test_parallel_messages_are_not_lost_or_duplicated 
CONCURRENCY RESULT: {"clients": 10, "messages_sent": 100, "status_201": 100, "messages_read": 100, "unique_ids": 100, "unique_texts": 100, "pages_read": 4, "send_seconds": 0.275}
PASSED

============================== 4 passed in 1.95s ===============================

