$ /workspace/scratch/03a740016edf/mtusi2026lab3/../.venv/bin/python -m pytest --collect-only -q -p no:cacheprovider student-tests/test_auth.py::test_register_returns_user_without_secrets student-tests/test_auth.py::test_register_password_rules[None] student-tests/test_auth.py::test_register_password_rules[] student-tests/test_auth.py::test_register_password_rules[short] student-tests/test_auth.py::test_register_password_rules[aaaaaaaaaaa] student-tests/test_auth.py::test_register_password_rules[aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa] student-tests/test_auth.py::test_register_password_rules[123456789012] student-tests/test_auth.py::test_register_password_rules[\u043f\u0430\u0440\u043e\u043b\u044c] student-tests/test_auth.py::test_register_password_border_lengths student-tests/test_auth.py::test_login_success_shape student-tests/test_auth.py::test_each_login_gives_new_token student-tests/test_auth.py::test_wrong_password_and_unknown_user_look_the_same student-tests/test_auth.py::test_malformed_basic_is_401[Basic] student-tests/test_auth.py::test_malformed_basic_is_401[Basic !!!not-base64!!!] student-tests/test_auth.py::test_malformed_basic_is_401[Basic bm9jb2xvbg==] student-tests/test_auth.py::test_malformed_basic_is_401[Basic 0LjQvNGPOnBhc3N3b3JkLTEyMzQ1Ng==] student-tests/test_auth.py::test_malformed_basic_is_401[Basic dXNlcjr//i1iYWQtdXRmOA==] student-tests/test_auth.py::test_malformed_basic_is_401[Bearer abc] student-tests/test_auth.py::test_malformed_basic_is_401[] student-tests/test_auth.py::test_login_without_header_is_401 student-tests/test_auth.py::test_password_with_colon_and_unicode_works student-tests/test_auth.py::test_bearer_token_gives_access student-tests/test_auth.py::test_business_endpoint_rejects_basic student-tests/test_auth.py::test_bad_or_unknown_bearer_is_401[] student-tests/test_auth.py::test_bad_or_unknown_bearer_is_401[Bearer] student-tests/test_auth.py::test_bad_or_unknown_bearer_is_401[Bearer short] student-tests/test_auth.py::test_bad_or_unknown_bearer_is_401[Bearer xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx] student-tests/test_auth.py::test_bad_or_unknown_bearer_is_401[Token abc] student-tests/test_auth.py::test_bad_or_unknown_bearer_is_401[bearer] student-tests/test_auth.py::test_x_user_id_alone_gives_no_access student-tests/test_auth.py::test_x_user_id_does_not_change_owner_of_session student-tests/test_auth.py::test_logout_revokes_token_and_repeat_is_401 student-tests/test_auth.py::test_logout_without_token_is_401 student-tests/test_auth.py::test_logout_revokes_only_current_session student-tests/test_auth.py::test_session_lives_longer_than_300_seconds student-tests/test_cache.py::test_user_profile_is_served_from_cache_with_bounded_ttl student-tests/test_cache.py::test_cache_never_stores_raw_tokens_or_passwords student-tests/test_cache.py::test_logout_revokes_cached_session student-tests/test_cache.py::test_late_cache_fill_cannot_resurrect_revoked_session student-tests/test_cache.py::test_flushed_cache_loses_nothing student-tests/test_cache.py::test_cache_does_not_extend_short_session student-tests/test_cache.py::test_staleness_after_out_of_band_delete_is_bounded_by_cache_ttl student-tests/test_cache.py::test_redis_down_requests_bypass_cache_and_stay_fast student-tests/test_cache.py::test_redis_down_never_trusts_anonymous_or_unknown_tokens student-tests/test_cache.py::test_revocation_lost_while_redis_down_is_flushed_on_recovery student-tests/test_cache.py::test_without_cache_url_cache_is_off student-tests/test_cache.py::test_lost_revocation_survives_api_restart[False] student-tests/test_cache.py::test_lost_revocation_survives_api_restart[True] student-tests/test_cache.py::test_cached_session_deleted_in_database_is_rejected_immediately student-tests/test_concurrency.py::test_100_messages_from_10_clients_in_parallel student-tests/test_concurrency.py::test_parallel_chat_creation_and_reading student-tests/test_contract_basics.py::test_health_endpoints student-tests/test_contract_basics.py::test_every_response_has_unique_request_id student-tests/test_contract_basics.py::test_unknown_path_is_404_in_common_format student-tests/test_contract_basics.py::test_trailing_slash_is_not_redirected student-tests/test_contract_basics.py::test_wrong_method_is_405_in_common_format student-tests/test_contract_basics.py::test_two_users_one_chat_two_messages student-tests/test_contract_basics.py::test_chat_response_shape student-tests/test_contract_basics.py::test_unexpected_exception_gives_500_without_details student-tests/test_contract_basics.py::test_logs_have_requests_but_no_secrets student-tests/test_database.py::test_password_is_stored_as_scrypt_hash_not_plaintext student-tests/test_database.py::test_same_password_gives_different_hashes student-tests/test_database.py::test_session_table_keeps_token_hash_not_token student-tests/test_database.py::test_message_is_really_in_the_database student-tests/test_database.py::test_migrations_can_run_again_without_duplicating_anything student-tests/test_database.py::test_expected_tables_and_indexes_exist student-tests/test_database.py::test_primary_and_foreign_keys_are_declared student-tests/test_database.py::test_database_itself_rejects_bad_rows student-tests/test_database.py::test_chat_creation_is_atomic student-tests/test_database.py::test_successful_chat_has_all_members_in_database student-tests/test_db_failure.py::test_database_down_gives_503_and_never_trusts_anyone student-tests/test_db_failure.py::test_database_down_with_cache_up_still_needs_database_for_data student-tests/test_duplicate_username.py::test_second_registration_with_same_username_is_409 student-tests/test_duplicate_username.py::test_duplicate_does_not_replace_original_user student-tests/test_duplicate_username.py::test_username_is_case_sensitive_lowercase_only student-tests/test_duplicate_username.py::test_parallel_registration_of_same_username_creates_exactly_one student-tests/test_empty_message.py::test_blank_text_is_rejected[] student-tests/test_empty_message.py::test_blank_text_is_rejected[ ] student-tests/test_empty_message.py::test_blank_text_is_rejected[ ] student-tests/test_empty_message.py::test_blank_text_is_rejected[\n] student-tests/test_empty_message.py::test_blank_text_is_rejected[\t \n] student-tests/test_empty_message.py::test_blank_text_is_rejected[\xa0] student-tests/test_empty_message.py::test_blank_text_is_rejected[\u2003] student-tests/test_empty_message.py::test_missing_or_wrong_type_text_is_rejected[body0] student-tests/test_empty_message.py::test_missing_or_wrong_type_text_is_rejected[body1] student-tests/test_empty_message.py::test_missing_or_wrong_type_text_is_rejected[body2] student-tests/test_empty_message.py::test_missing_or_wrong_type_text_is_rejected[body3] student-tests/test_empty_message.py::test_missing_or_wrong_type_text_is_rejected[body4] student-tests/test_empty_message.py::test_text_length_is_counted_in_characters student-tests/test_empty_message.py::test_nul_character_is_400_not_500 student-tests/test_empty_message.py::test_unicode_survives_the_database student-tests/test_empty_message.py::test_message_has_correct_fields student-tests/test_explain.py::test_history_page_uses_index_without_full_scan[0] student-tests/test_explain.py::test_history_page_uses_index_without_full_scan[9000] student-tests/test_foreign_chat.py::test_outsider_cannot_read_chat student-tests/test_foreign_chat.py::test_outsider_cannot_read_history student-tests/test_foreign_chat.py::test_outsider_cannot_write student-tests/test_foreign_chat.py::test_outsider_gets_404_even_with_bad_body student-tests/test_foreign_chat.py::test_unknown_chat_looks_the_same_as_foreign student-tests/test_foreign_chat.py::test_chat_list_shows_only_own_chats student-tests/test_foreign_chat.py::test_bad_chat_id_is_400 student-tests/test_foreign_chat.py::test_no_token_is_401_everywhere student-tests/test_foreign_chat.py::test_401_comes_before_404 student-tests/test_foreign_chat.py::test_member_can_read_and_write student-tests/test_idempotency.py::test_key_is_required_and_validated[None] student-tests/test_idempotency.py::test_key_is_required_and_validated[] student-tests/test_idempotency.py::test_key_is_required_and_validated[a b] student-tests/test_idempotency.py::test_key_is_required_and_validated[a?b] student-tests/test_idempotency.py::test_key_is_required_and_validated[xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx] student-tests/test_idempotency.py::test_key_is_required_and_validated[a,b] student-tests/test_idempotency.py::test_key_is_required_and_validated[a/b] student-tests/test_idempotency.py::test_duplicate_headers_are_invalid student-tests/test_idempotency.py::test_replay_and_conflict_preserve_original_result student-tests/test_idempotency.py::test_parallel_same_key_across_two_applications student-tests/test_idempotency.py::test_key_scope_includes_user_and_chat student-tests/test_idempotency.py::test_expired_result_allows_new_message student-tests/test_idempotency.py::test_failure_between_message_and_result_rolls_back student-tests/test_idempotency.py::test_committed_but_lost_response_is_safe_to_retry student-tests/test_idempotency.py::test_replay_rechecks_session_and_chat_access student-tests/test_invalid_json.py::test_registration_rejects_broken_json[{] student-tests/test_invalid_json.py::test_registration_rejects_broken_json[not json at all] student-tests/test_invalid_json.py::test_registration_rejects_broken_json[] student-tests/test_invalid_json.py::test_registration_rejects_broken_json[{"username": "abc",}] student-tests/test_invalid_json.py::test_registration_rejects_broken_json[\xff\xfe\x00] student-tests/test_invalid_json.py::test_registration_rejects_broken_json[{"username": NaN}] student-tests/test_invalid_json.py::test_registration_rejects_broken_json[["username"]] student-tests/test_invalid_json.py::test_registration_rejects_broken_json["text"] student-tests/test_invalid_json.py::test_registration_rejects_broken_json[null] student-tests/test_invalid_json.py::test_registration_rejects_bad_fields[changes0] student-tests/test_invalid_json.py::test_registration_rejects_bad_fields[changes1] student-tests/test_invalid_json.py::test_registration_rejects_bad_fields[changes2] student-tests/test_invalid_json.py::test_registration_rejects_bad_fields[changes3] student-tests/test_invalid_json.py::test_registration_rejects_bad_fields[changes4] student-tests/test_invalid_json.py::test_registration_rejects_bad_fields[changes5] student-tests/test_invalid_json.py::test_registration_rejects_bad_fields[changes6] student-tests/test_invalid_json.py::test_registration_rejects_bad_fields[changes7] student-tests/test_invalid_json.py::test_registration_rejects_bad_fields[changes8] student-tests/test_invalid_json.py::test_registration_rejects_bad_fields[changes9] student-tests/test_invalid_json.py::test_registration_rejects_bad_fields[changes10] student-tests/test_invalid_json.py::test_registration_rejects_bad_fields[changes11] student-tests/test_invalid_json.py::test_registration_rejects_bad_fields[changes12] student-tests/test_invalid_json.py::test_registration_rejects_bad_fields[changes13] student-tests/test_invalid_json.py::test_registration_rejects_bad_fields[changes14] student-tests/test_invalid_json.py::test_registration_rejects_bad_fields[changes15] student-tests/test_invalid_json.py::test_registration_rejects_bad_fields[changes16] student-tests/test_invalid_json.py::test_border_values_are_accepted student-tests/test_invalid_json.py::test_lone_surrogate_is_400_not_500 student-tests/test_invalid_json.py::test_wrong_or_missing_content_type_is_415 student-tests/test_invalid_json.py::test_huge_body_is_413 student-tests/test_invalid_json.py::test_broken_json_in_message_and_chat student-tests/test_invalid_json.py::test_sender_id_in_message_is_rejected student-tests/test_invalid_json.py::test_chat_body_validation student-tests/test_pagination.py::test_walk_25_messages_by_7 student-tests/test_pagination.py::test_exact_multiple_has_no_empty_extra_page student-tests/test_pagination.py::test_limit_one_walks_everything student-tests/test_pagination.py::test_default_limit_is_50_and_max_is_100 student-tests/test_pagination.py::test_empty_history student-tests/test_pagination.py::test_limit_can_change_between_pages student-tests/test_pagination.py::test_messages_sent_during_walk_appear_at_the_end student-tests/test_pagination.py::test_created_at_is_increasing_and_utc student-tests/test_pagination.py::test_bad_limit_values student-tests/test_pagination.py::test_garbage_cursor_is_400 student-tests/test_pagination.py::test_cursor_from_another_chat_is_400 student-tests/test_pagination.py::test_chat_list_pagination student-tests/test_pagination.py::test_chat_list_cursor_cannot_be_used_for_messages student-tests/test_pagination.py::test_invalid_cursor_timestamp_is_400[messages--1] student-tests/test_pagination.py::test_invalid_cursor_timestamp_is_400[messages-1000000000000000000000000000000] student-tests/test_pagination.py::test_invalid_cursor_timestamp_is_400[messages-253402300800000000] student-tests/test_pagination.py::test_invalid_cursor_timestamp_is_400[messages-True] student-tests/test_pagination.py::test_invalid_cursor_timestamp_is_400[messages-1.5] student-tests/test_pagination.py::test_invalid_cursor_timestamp_is_400[messages-1] student-tests/test_pagination.py::test_invalid_cursor_timestamp_is_400[messages-None] student-tests/test_pagination.py::test_invalid_cursor_timestamp_is_400[chats--1] student-tests/test_pagination.py::test_invalid_cursor_timestamp_is_400[chats-1000000000000000000000000000000] student-tests/test_pagination.py::test_invalid_cursor_timestamp_is_400[chats-253402300800000000] student-tests/test_pagination.py::test_invalid_cursor_timestamp_is_400[chats-True] student-tests/test_pagination.py::test_invalid_cursor_timestamp_is_400[chats-1.5] student-tests/test_pagination.py::test_invalid_cursor_timestamp_is_400[chats-1] student-tests/test_pagination.py::test_invalid_cursor_timestamp_is_400[chats-None] student-tests/test_pagination.py::test_cursor_timestamp_boundaries_are_valid[messages-0] student-tests/test_pagination.py::test_cursor_timestamp_boundaries_are_valid[messages-253402300799999999] student-tests/test_pagination.py::test_cursor_timestamp_boundaries_are_valid[chats-0] student-tests/test_pagination.py::test_cursor_timestamp_boundaries_are_valid[chats-253402300799999999] student-tests/test_session_expiry.py::test_session_expires_after_ttl student-tests/test_session_expiry.py::test_expired_sessions_are_cleaned_on_next_login student-tests/test_session_expiry.py::test_short_ttl_from_environment_variable student-tests/test_transactions.py::test_failure_after_chat_insert_rolls_back_whole_operation student-tests/test_transactions.py::test_pool_is_bounded_by_settings student-tests/test_transactions.py::test_exhausted_pool_gives_fast_503 unit-tests/test_message_transaction.py::test_conflicting_replay_rolls_back_without_commit unit-tests/test_message_transaction.py::test_result_insert_failure_never_commits_message unit-tests/test_message_transaction.py::test_replay_returns_original_message_and_releases_transaction unit-tests/test_message_transaction.py::test_failed_commit_rolls_back_and_propagates_error unit-tests/test_mr_regressions.py::test_stale_positive_cache_never_authorizes_revoked_token[/api/v1/users/me-GET] unit-tests/test_mr_regressions.py::test_stale_positive_cache_never_authorizes_revoked_token[/api/v1/chats/00000000-0000-0000-0000-000000000002/messages-POST] unit-tests/test_mr_regressions.py::test_stale_positive_cache_never_authorizes_revoked_token[/api/v1/auth/sessions/current-DELETE] unit-tests/test_mr_regressions.py::test_valid_cache_hit_checks_session_without_loading_user unit-tests/test_mr_regressions.py::test_database_failure_on_positive_cache_hit_is_503 unit-tests/test_mr_regressions.py::test_cursor_timestamp_is_rejected_through_http[messages--1] unit-tests/test_mr_regressions.py::test_cursor_timestamp_is_rejected_through_http[messages-253402300800000000] unit-tests/test_mr_regressions.py::test_cursor_timestamp_is_rejected_through_http[messages-1000000000000000000000000000000] unit-tests/test_mr_regressions.py::test_cursor_timestamp_is_rejected_through_http[messages-True] unit-tests/test_mr_regressions.py::test_cursor_timestamp_is_rejected_through_http[messages-1.5] unit-tests/test_mr_regressions.py::test_cursor_timestamp_is_rejected_through_http[messages-1] unit-tests/test_mr_regressions.py::test_cursor_timestamp_is_rejected_through_http[messages-None] unit-tests/test_mr_regressions.py::test_cursor_timestamp_is_rejected_through_http[chats--1] unit-tests/test_mr_regressions.py::test_cursor_timestamp_is_rejected_through_http[chats-253402300800000000] unit-tests/test_mr_regressions.py::test_cursor_timestamp_is_rejected_through_http[chats-1000000000000000000000000000000] unit-tests/test_mr_regressions.py::test_cursor_timestamp_is_rejected_through_http[chats-True] unit-tests/test_mr_regressions.py::test_cursor_timestamp_is_rejected_through_http[chats-1.5] unit-tests/test_mr_regressions.py::test_cursor_timestamp_is_rejected_through_http[chats-1] unit-tests/test_mr_regressions.py::test_cursor_timestamp_is_rejected_through_http[chats-None] unit-tests/test_mr_regressions.py::test_timestamp_boundaries_roundtrip[0] unit-tests/test_mr_regressions.py::test_timestamp_boundaries_roundtrip[253402300799999999] unit-tests/test_mr_regressions.py::test_message_key_validation[None] unit-tests/test_mr_regressions.py::test_message_key_validation[] unit-tests/test_mr_regressions.py::test_message_key_validation[bad key] unit-tests/test_mr_regressions.py::test_message_key_validation[xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx] unit-tests/test_mr_regressions.py::test_message_key_validation[a?b] unit-tests/test_mr_regressions.py::test_message_key_validation[a,b] unit-tests/test_mr_regressions.py::test_message_normalization_and_conflict unit-tests/test_mr_regressions.py::test_instance_header_matches_process_on_all_responses[/health/live] unit-tests/test_mr_regressions.py::test_instance_header_matches_process_on_all_responses[/missing] unit-tests/test_mr_regressions.py::test_instance_header_matches_process_on_all_responses[/api/v1/users/me] unit-tests/test_mr_regressions.py::test_instance_alias_changes_between_applications unit-tests/test_mr_regressions.py::test_sigterm_drops_readiness_and_requests_graceful_exit =============================== warnings summary =============================== ../.venv/lib/python3.12/site-packages/fastapi/testclient.py:1 /workspace/scratch/03a740016edf/.venv/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 226 tests collected in 0.09s exit_code=0