# Дата (UTC): 2026-10-23 10:18:12
# Commit: 65003b6
# Команда: docker compose --env-file .env --profile test run --rm tests
# ---------------------------------------- вывод ----------------------------------------
============================= test session starts ==============================
collecting ... collected 153 items

student-tests/test_auth.py::test_register_returns_user_without_secrets PASSED [  0%]
student-tests/test_auth.py::test_register_password_rules[None] PASSED    [  1%]
student-tests/test_auth.py::test_register_password_rules[] PASSED        [  1%]
student-tests/test_auth.py::test_register_password_rules[short] PASSED   [  2%]
student-tests/test_auth.py::test_register_password_rules[aaaaaaaaaaa] PASSED [  3%]
student-tests/test_auth.py::test_register_password_rules[aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa] PASSED [  3%]
student-tests/test_auth.py::test_register_password_rules[123456789012] PASSED [  4%]
student-tests/test_auth.py::test_register_password_rules[\u043f\u0430\u0440\u043e\u043b\u044c] PASSED [  5%]
student-tests/test_auth.py::test_register_password_border_lengths PASSED [  5%]
student-tests/test_auth.py::test_login_success_shape PASSED              [  6%]
student-tests/test_auth.py::test_each_login_gives_new_token PASSED       [  7%]
student-tests/test_auth.py::test_wrong_password_and_unknown_user_look_the_same PASSED [  7%]
student-tests/test_auth.py::test_malformed_basic_is_401[Basic] PASSED    [  8%]
student-tests/test_auth.py::test_malformed_basic_is_401[Basic !!!not-base64!!!] PASSED [  9%]
student-tests/test_auth.py::test_malformed_basic_is_401[Basic bm9jb2xvbg==] PASSED [  9%]
student-tests/test_auth.py::test_malformed_basic_is_401[Basic 0LjQvNGPOnBhc3N3b3JkLTEyMzQ1Ng==] PASSED [ 10%]
student-tests/test_auth.py::test_malformed_basic_is_401[Basic dXNlcjr//i1iYWQtdXRmOA==] PASSED [ 11%]
student-tests/test_auth.py::test_malformed_basic_is_401[Bearer abc] PASSED [ 11%]
student-tests/test_auth.py::test_malformed_basic_is_401[] PASSED         [ 12%]
student-tests/test_auth.py::test_login_without_header_is_401 PASSED      [ 13%]
student-tests/test_auth.py::test_password_with_colon_and_unicode_works PASSED [ 13%]
student-tests/test_auth.py::test_bearer_token_gives_access PASSED        [ 14%]
student-tests/test_auth.py::test_business_endpoint_rejects_basic PASSED  [ 15%]
student-tests/test_auth.py::test_bad_or_unknown_bearer_is_401[] PASSED   [ 15%]
student-tests/test_auth.py::test_bad_or_unknown_bearer_is_401[Bearer] PASSED [ 16%]
student-tests/test_auth.py::test_bad_or_unknown_bearer_is_401[Bearer short] PASSED [ 16%]
student-tests/test_auth.py::test_bad_or_unknown_bearer_is_401[Bearer xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx] PASSED [ 17%]
student-tests/test_auth.py::test_bad_or_unknown_bearer_is_401[Token abc] PASSED [ 18%]
student-tests/test_auth.py::test_bad_or_unknown_bearer_is_401[bearer] PASSED [ 18%]
student-tests/test_auth.py::test_x_user_id_alone_gives_no_access PASSED  [ 19%]
student-tests/test_auth.py::test_x_user_id_does_not_change_owner_of_session PASSED [ 20%]
student-tests/test_auth.py::test_logout_revokes_token_and_repeat_is_401 PASSED [ 20%]
student-tests/test_auth.py::test_logout_without_token_is_401 PASSED      [ 21%]
student-tests/test_auth.py::test_logout_revokes_only_current_session PASSED [ 22%]
student-tests/test_auth.py::test_session_lives_longer_than_300_seconds PASSED [ 22%]
student-tests/test_cache.py::test_token_check_is_served_from_cache_with_bounded_ttl PASSED [ 23%]
student-tests/test_cache.py::test_cache_never_stores_raw_tokens_or_passwords PASSED [ 24%]
student-tests/test_cache.py::test_logout_revokes_cached_session PASSED   [ 24%]
student-tests/test_cache.py::test_late_cache_fill_cannot_resurrect_revoked_session PASSED [ 25%]
student-tests/test_cache.py::test_flushed_cache_loses_nothing PASSED     [ 26%]
student-tests/test_cache.py::test_cache_does_not_extend_short_session PASSED [ 26%]
student-tests/test_cache.py::test_staleness_after_out_of_band_delete_is_bounded_by_cache_ttl PASSED [ 27%]
student-tests/test_cache.py::test_redis_down_requests_bypass_cache_and_stay_fast PASSED [ 28%]
student-tests/test_cache.py::test_redis_down_never_trusts_anonymous_or_unknown_tokens PASSED [ 28%]
student-tests/test_cache.py::test_revocation_lost_while_redis_down_is_flushed_on_recovery PASSED [ 29%]
student-tests/test_cache.py::test_without_cache_url_cache_is_off PASSED  [ 30%]
student-tests/test_concurrency.py::test_100_messages_from_10_clients_in_parallel PASSED [ 30%]
student-tests/test_concurrency.py::test_parallel_chat_creation_and_reading PASSED [ 31%]
student-tests/test_contract_basics.py::test_health_endpoints PASSED      [ 32%]
student-tests/test_contract_basics.py::test_every_response_has_unique_request_id PASSED [ 32%]
student-tests/test_contract_basics.py::test_unknown_path_is_404_in_common_format PASSED [ 33%]
student-tests/test_contract_basics.py::test_trailing_slash_is_not_redirected PASSED [ 33%]
student-tests/test_contract_basics.py::test_wrong_method_is_405_in_common_format PASSED [ 34%]
student-tests/test_contract_basics.py::test_two_users_one_chat_two_messages PASSED [ 35%]
student-tests/test_contract_basics.py::test_chat_response_shape PASSED   [ 35%]
student-tests/test_contract_basics.py::test_unexpected_exception_gives_500_without_details PASSED [ 36%]
student-tests/test_contract_basics.py::test_logs_have_requests_but_no_secrets PASSED [ 37%]
student-tests/test_database.py::test_password_is_stored_as_scrypt_hash_not_plaintext PASSED [ 37%]
student-tests/test_database.py::test_same_password_gives_different_hashes PASSED [ 38%]
student-tests/test_database.py::test_session_table_keeps_token_hash_not_token PASSED [ 39%]
student-tests/test_database.py::test_message_is_really_in_the_database PASSED [ 39%]
student-tests/test_database.py::test_migrations_can_run_again_without_duplicating_anything PASSED [ 40%]
student-tests/test_database.py::test_expected_tables_and_indexes_exist PASSED [ 41%]
student-tests/test_database.py::test_primary_and_foreign_keys_are_declared PASSED [ 41%]
student-tests/test_database.py::test_database_itself_rejects_bad_rows PASSED [ 42%]
student-tests/test_database.py::test_chat_creation_is_atomic PASSED      [ 43%]
student-tests/test_database.py::test_successful_chat_has_all_members_in_database PASSED [ 43%]
student-tests/test_db_failure.py::test_database_down_gives_503_and_never_trusts_anyone PASSED [ 44%]
student-tests/test_db_failure.py::test_database_down_with_cache_up_still_needs_database_for_data PASSED [ 45%]
student-tests/test_duplicate_username.py::test_second_registration_with_same_username_is_409 PASSED [ 45%]
student-tests/test_duplicate_username.py::test_duplicate_does_not_replace_original_user PASSED [ 46%]
student-tests/test_duplicate_username.py::test_username_is_case_sensitive_lowercase_only PASSED [ 47%]
student-tests/test_duplicate_username.py::test_parallel_registration_of_same_username_creates_exactly_one PASSED [ 47%]
student-tests/test_empty_message.py::test_blank_text_is_rejected[] PASSED [ 48%]
student-tests/test_empty_message.py::test_blank_text_is_rejected[ ] PASSED [ 49%]
student-tests/test_empty_message.py::test_blank_text_is_rejected[     ] PASSED [ 49%]
student-tests/test_empty_message.py::test_blank_text_is_rejected[\n] PASSED [ 50%]
student-tests/test_empty_message.py::test_blank_text_is_rejected[\t \n] PASSED [ 50%]
student-tests/test_empty_message.py::test_blank_text_is_rejected[\xa0] PASSED [ 51%]
student-tests/test_empty_message.py::test_blank_text_is_rejected[\u2003] PASSED [ 52%]
student-tests/test_empty_message.py::test_missing_or_wrong_type_text_is_rejected[body0] PASSED [ 52%]
student-tests/test_empty_message.py::test_missing_or_wrong_type_text_is_rejected[body1] PASSED [ 53%]
student-tests/test_empty_message.py::test_missing_or_wrong_type_text_is_rejected[body2] PASSED [ 54%]
student-tests/test_empty_message.py::test_missing_or_wrong_type_text_is_rejected[body3] PASSED [ 54%]
student-tests/test_empty_message.py::test_missing_or_wrong_type_text_is_rejected[body4] PASSED [ 55%]
student-tests/test_empty_message.py::test_text_length_is_counted_in_characters PASSED [ 56%]
student-tests/test_empty_message.py::test_nul_character_is_400_not_500 PASSED [ 56%]
student-tests/test_empty_message.py::test_unicode_survives_the_database PASSED [ 57%]
student-tests/test_empty_message.py::test_message_has_correct_fields PASSED [ 58%]
student-tests/test_explain.py::test_history_page_uses_index_without_full_scan[0] PASSED [ 58%]
student-tests/test_explain.py::test_history_page_uses_index_without_full_scan[9000] PASSED [ 59%]
student-tests/test_foreign_chat.py::test_outsider_cannot_read_chat PASSED [ 60%]
student-tests/test_foreign_chat.py::test_outsider_cannot_read_history PASSED [ 60%]
student-tests/test_foreign_chat.py::test_outsider_cannot_write PASSED    [ 61%]
student-tests/test_foreign_chat.py::test_outsider_gets_404_even_with_bad_body PASSED [ 62%]
student-tests/test_foreign_chat.py::test_unknown_chat_looks_the_same_as_foreign PASSED [ 62%]
student-tests/test_foreign_chat.py::test_chat_list_shows_only_own_chats PASSED [ 63%]
student-tests/test_foreign_chat.py::test_bad_chat_id_is_400 PASSED       [ 64%]
student-tests/test_foreign_chat.py::test_no_token_is_401_everywhere PASSED [ 64%]
student-tests/test_foreign_chat.py::test_401_comes_before_404 PASSED     [ 65%]
student-tests/test_foreign_chat.py::test_member_can_read_and_write PASSED [ 66%]
student-tests/test_invalid_json.py::test_registration_rejects_broken_json[{] PASSED [ 66%]
student-tests/test_invalid_json.py::test_registration_rejects_broken_json[not json at all] PASSED [ 67%]
student-tests/test_invalid_json.py::test_registration_rejects_broken_json[] PASSED [ 67%]
student-tests/test_invalid_json.py::test_registration_rejects_broken_json[{"username": "abc",}] PASSED [ 68%]
student-tests/test_invalid_json.py::test_registration_rejects_broken_json[\xff\xfe\x00] PASSED [ 69%]
student-tests/test_invalid_json.py::test_registration_rejects_broken_json[{"username": NaN}] PASSED [ 69%]
student-tests/test_invalid_json.py::test_registration_rejects_broken_json[["username"]] PASSED [ 70%]
student-tests/test_invalid_json.py::test_registration_rejects_broken_json["text"] PASSED [ 71%]
student-tests/test_invalid_json.py::test_registration_rejects_broken_json[null] PASSED [ 71%]
student-tests/test_invalid_json.py::test_registration_rejects_bad_fields[changes0] PASSED [ 72%]
student-tests/test_invalid_json.py::test_registration_rejects_bad_fields[changes1] PASSED [ 73%]
student-tests/test_invalid_json.py::test_registration_rejects_bad_fields[changes2] PASSED [ 73%]
student-tests/test_invalid_json.py::test_registration_rejects_bad_fields[changes3] PASSED [ 74%]
student-tests/test_invalid_json.py::test_registration_rejects_bad_fields[changes4] PASSED [ 75%]
student-tests/test_invalid_json.py::test_registration_rejects_bad_fields[changes5] PASSED [ 75%]
student-tests/test_invalid_json.py::test_registration_rejects_bad_fields[changes6] PASSED [ 76%]
student-tests/test_invalid_json.py::test_registration_rejects_bad_fields[changes7] PASSED [ 77%]
student-tests/test_invalid_json.py::test_registration_rejects_bad_fields[changes8] PASSED [ 77%]
student-tests/test_invalid_json.py::test_registration_rejects_bad_fields[changes9] PASSED [ 78%]
student-tests/test_invalid_json.py::test_registration_rejects_bad_fields[changes10] PASSED [ 79%]
student-tests/test_invalid_json.py::test_registration_rejects_bad_fields[changes11] PASSED [ 79%]
student-tests/test_invalid_json.py::test_registration_rejects_bad_fields[changes12] PASSED [ 80%]
student-tests/test_invalid_json.py::test_registration_rejects_bad_fields[changes13] PASSED [ 81%]
student-tests/test_invalid_json.py::test_registration_rejects_bad_fields[changes14] PASSED [ 81%]
student-tests/test_invalid_json.py::test_registration_rejects_bad_fields[changes15] PASSED [ 82%]
student-tests/test_invalid_json.py::test_registration_rejects_bad_fields[changes16] PASSED [ 83%]
student-tests/test_invalid_json.py::test_border_values_are_accepted PASSED [ 83%]
student-tests/test_invalid_json.py::test_lone_surrogate_is_400_not_500 PASSED [ 84%]
student-tests/test_invalid_json.py::test_wrong_or_missing_content_type_is_415 PASSED [ 84%]
student-tests/test_invalid_json.py::test_huge_body_is_413 PASSED         [ 85%]
student-tests/test_invalid_json.py::test_broken_json_in_message_and_chat PASSED [ 86%]
student-tests/test_invalid_json.py::test_sender_id_in_message_is_rejected PASSED [ 86%]
student-tests/test_invalid_json.py::test_chat_body_validation PASSED     [ 87%]
student-tests/test_pagination.py::test_walk_25_messages_by_7 PASSED      [ 88%]
student-tests/test_pagination.py::test_exact_multiple_has_no_empty_extra_page PASSED [ 88%]
student-tests/test_pagination.py::test_limit_one_walks_everything PASSED [ 89%]
student-tests/test_pagination.py::test_default_limit_is_50_and_max_is_100 PASSED [ 90%]
student-tests/test_pagination.py::test_empty_history PASSED              [ 90%]
student-tests/test_pagination.py::test_limit_can_change_between_pages PASSED [ 91%]
student-tests/test_pagination.py::test_messages_sent_during_walk_appear_at_the_end PASSED [ 92%]
student-tests/test_pagination.py::test_created_at_is_increasing_and_utc PASSED [ 92%]
student-tests/test_pagination.py::test_bad_limit_values PASSED           [ 93%]
student-tests/test_pagination.py::test_garbage_cursor_is_400 PASSED      [ 94%]
student-tests/test_pagination.py::test_cursor_from_another_chat_is_400 PASSED [ 94%]
student-tests/test_pagination.py::test_chat_list_pagination PASSED       [ 95%]
student-tests/test_pagination.py::test_chat_list_cursor_cannot_be_used_for_messages PASSED [ 96%]
student-tests/test_session_expiry.py::test_session_expires_after_ttl PASSED [ 96%]
student-tests/test_session_expiry.py::test_expired_sessions_are_cleaned_on_next_login PASSED [ 97%]
student-tests/test_session_expiry.py::test_short_ttl_from_environment_variable PASSED [ 98%]
student-tests/test_transactions.py::test_failure_after_chat_insert_rolls_back_whole_operation PASSED [ 98%]
student-tests/test_transactions.py::test_pool_is_bounded_by_settings PASSED [ 99%]
student-tests/test_transactions.py::test_exhausted_pool_gives_fast_503 PASSED [100%]

=============================== warnings summary ===============================
../usr/local/lib/python3.12/site-packages/fastapi/testclient.py:1
  /usr/local/lib/python3.12/site-packages/fastapi/testclient.py:1: StarletteDeprecationWarning: Using `httpx` with `starlette.testclient` is deprecated; install `httpx2` instead.
    from starlette.testclient import TestClient as TestClient  # noqa

-- Docs: https://docs.pytest.org/en/stable/how-to/capture-warnings.html
======================= 153 passed, 1 warning in 33.55s ========================
 Container messenger-db Running 
 Container messenger-redis Running 
 Container messenger-redis Waiting 
 Container messenger-db Waiting 
 Container messenger-redis Healthy 
 Container messenger-db Healthy 
 Container mtusi-messenger-tests-run-27b6c4db6282 Creating 
 Container mtusi-messenger-tests-run-27b6c4db6282 Created
# ---------------------------------------------------------------------------------------
# Код возврата: 0
# Время выполнения: 36.72 с
