============================= test session starts ============================== platform linux -- Python 3.12.15, pytest-9.1.1, pluggy-1.7.0 -- /home/ilyas/projects/labs_highload/mtusi2026lab4/.venv/bin/python3.12 cachedir: .pytest_cache rootdir: /home/ilyas/projects/labs_highload/mtusi2026lab4 configfile: pytest.ini plugins: anyio-4.16.0, asyncio-1.4.0 asyncio: mode=Mode.AUTO, debug=False, asyncio_default_fixture_loop_scope=None, asyncio_default_test_loop_scope=function collecting ... collected 34 items tests_student/tests.py::test_invalid_json_and_extra_fields PASSED [ 2%] tests_student/tests.py::test_outsider_chat_access_is_404 PASSED [ 5%] tests_student/tests.py::test_empty_and_whitespace_message PASSED [ 8%] tests_student/tests.py::test_duplicate_username_conflict PASSED [ 11%] tests_student/tests.py::test_wrong_password_and_bad_basic_auth PASSED [ 14%] tests_student/tests.py::test_logout_and_revocation PASSED [ 17%] tests_student/tests.py::test_multi_page_cursor_pagination PASSED [ 20%] tests_student/tests.py::test_concurrency_race_condition PASSED [ 23%] tests_student/tests.py::test_password_whitespace_rejected PASSED [ 26%] tests_student/tests.py::test_auth_sessions_with_body_rejected PASSED [ 29%] tests_student/tests.py::test_unsupported_media_type_415 PASSED [ 32%] tests_student/tests.py::test_nul_byte_in_strings_handled PASSED [ 35%] tests_student/tests.py::test_basic_auth_invalid_base64_returns_401 PASSED [ 38%] tests_student/tests.py::test_cross_chat_cursor_rejected_400 PASSED [ 41%] tests_student/tests.py::test_utf8_password_support PASSED [ 44%] tests_student/tests.py::test_health_readiness_and_liveness PASSED [ 47%] tests_student/tests.py::test_instance_id_header_present PASSED [ 50%] tests_student/tests.py::test_idempotency_key_validation PASSED [ 52%] tests_student/tests.py::test_idempotency_replay_and_conflict PASSED [ 55%] tests_student/tests.py::test_idempotency_acl_check_on_replay PASSED [ 58%] tests_student/tests.py::test_invalid_cursor_date_returns_400 PASSED [ 61%] tests_student/tests.py::test_strict_types_and_json_parsing PASSED [ 64%] tests_student/tests.py::test_chat_creation_with_unknown_participant_is_400 PASSED [ 67%] tests_student/tests.py::test_password_with_colons_and_utf8 PASSED [ 70%] tests_student/tests.py::test_keyset_pagination_returns_next_cursor PASSED [ 73%] tests_student/tests.py::test_attachment_upload_and_download_flow PASSED [ 76%] tests_student/tests.py::test_attachment_unsupported_media_type_and_magic_bytes PASSED [ 79%] tests_student/tests.py::test_attachment_filename_validation PASSED [ 82%] tests_student/tests.py::test_attachment_payload_too_large_and_pixel_bomb PASSED [ 85%] tests_student/tests.py::test_attachment_acl_and_isolation PASSED [ 88%] tests_student/tests.py::test_message_linking_attachments PASSED [ 91%] tests_student/tests.py::test_attachment_orphan_compensation PASSED [ 94%] tests_student/tests.py::test_private_bucket_outside_api PASSED [ 97%] tests_student/tests.py::test_concurrent_uploads_memory_limit PASSED [100%] ============================= 34 passed in 37.86s ==============================