# Own tests: unit + stand (pytest -v); failures restored in finally
# 2026-10-31T14:23:18Z, commit cf6e929 docs: PIPELINE, DEFENSE, DATA_MODEL, WINDOWS для lab5; черновик REPORT

$ python -m pytest student-tests -v
============================= test session starts =============================
platform win32 -- Python 3.14.6, pytest-9.1.1, pluggy-1.7.0 -- C:\Users\wfa22\Desktop\Высоконагруженные приложения\lab5-clean\.venv\Scripts\python.exe
rootdir: C:\Users\wfa22\Desktop\Высоконагруженные приложения\lab5-clean
plugins: anyio-4.15.1
collecting ... collected 381 items

student-tests/test_api.py::test_register_never_returns_password_and_login_returns_bearer PASSED [  0%]
student-tests/test_api.py::test_duplicate_username_is_409 PASSED         [  0%]
student-tests/test_api.py::test_bad_password_on_registration_is_400[short-11ch] PASSED [  0%]
student-tests/test_api.py::test_bad_password_on_registration_is_400[            ] PASSED [  1%]
student-tests/test_api.py::test_bad_password_on_registration_is_400[ \t \n  \t \n  \t \n ] PASSED [  1%]
student-tests/test_api.py::test_bad_password_on_registration_is_400[\u044f\u044f\u044f\u044f\u044f\u044f\u044f\u044f\u044f\u044f\u044f\u044f\u044f\u044f\u044f\u044f\u044f\u044f\u044f\u044f\u044f\u044f\u044f\u044f\u044f\u044f\u044f\u044f\u044f\u044f\u044f\u044f\u044f\u044f\u044f\u044f\u044f\u044f\u044f\u044f\u044f\u044f\u044f\u044f\u044f\u044f\u044f\u044f\u044f\u044f\u044f\u044f\u044f\u044f\u044f\u044f\u044f\u044f\u044f\u044f\u044f\u044f\u044f\u044f\u044f\u044f\u044f\u044f\u044f\u044f\u044f\u044f\u044f\u044f\u044f\u044f\u044f\u044f\u044f\u044f\u044f\u044f\u044f\u044f\u044f\u044f\u044f\u044f\u044f\u044f\u044f\u044f\u044f\u044f\u044f\u044f\u044f\u044f\u044f\u044f\u044f\u044f\u044f\u044f\u044f\u044f\u044f\u044f\u044f\u044f\u044f\u044f\u044f\u044f\u044f\u044f\u044f\u044f\u044f\u044f\u044f\u044f\u044f\u044f\u044f\u044f\u044f\u044f\u044f] PASSED [  1%]
student-tests/test_api.py::test_edge_passwords_register_and_login[\u044f\u044f\u044f\u044f\u044f\u044f\u044f\u044f\u044f\u044f\u044f\u044f\u044f\u044f\u044f\u044f\u044f\u044f\u044f\u044f\u044f\u044f\u044f\u044f\u044f\u044f\u044f\u044f\u044f\u044f\u044f\u044f\u044f\u044f\u044f\u044f\u044f\u044f\u044f\u044f\u044f\u044f\u044f\u044f\u044f\u044f\u044f\u044f\u044f\u044f\u044f\u044f\u044f\u044f\u044f\u044f\u044f\u044f\u044f\u044f\u044f\u044f\u044f\u044f\u044f\u044f\u044f\u044f\u044f\u044f\u044f\u044f\u044f\u044f\u044f\u044f\u044f\u044f\u044f\u044f\u044f\u044f\u044f\u044f\u044f\u044f\u044f\u044f\u044f\u044f\u044f\u044f\u044f\u044f\u044f\u044f\u044f\u044f\u044f\u044f\u044f\u044f\u044f\u044f\u044f\u044f\u044f\u044f\u044f\u044f\u044f\u044f\u044f\u044f\u044f\u044f\u044f\u044f\u044f\u044f\u044f\u044f\u044f\u044f\u044f\u044f\u044f\u044f] PASSED [  1%]
student-tests/test_api.py::test_edge_passwords_register_and_login[with:colons:inside] PASSED [  2%]
student-tests/test_api.py::test_edge_passwords_register_and_login[Twelve chars] PASSED [  2%]
student-tests/test_api.py::test_wrong_password_and_unknown_user_give_the_same_401 PASSED [  2%]
student-tests/test_api.py::test_malformed_basic_is_401_not_500[Basic \xe9] PASSED [  2%]
student-tests/test_api.py::test_malformed_basic_is_401_not_500[Basic !!!] PASSED [  3%]
student-tests/test_api.py::test_malformed_basic_is_401_not_500[Basic bm9fY29sb24=] PASSED [  3%]
student-tests/test_api.py::test_malformed_basic_is_401_not_500[Basic //46eA==] PASSED [  3%]
student-tests/test_api.py::test_malformed_basic_is_401_not_500[Bearer aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa] PASSED [  3%]
student-tests/test_api.py::test_malformed_basic_is_401_not_500[] PASSED  [  4%]
student-tests/test_api.py::test_logout_revokes_only_this_token PASSED    [  4%]
student-tests/test_api.py::test_x_user_id_basic_and_garbage_do_not_authenticate PASSED [  4%]
student-tests/test_api.py::test_malformed_json_is_400[{] PASSED          [  4%]
student-tests/test_api.py::test_malformed_json_is_400[] PASSED           [  5%]
student-tests/test_api.py::test_malformed_json_is_400[[]] PASSED         [  5%]
student-tests/test_api.py::test_malformed_json_is_400[null] PASSED       [  5%]
student-tests/test_api.py::test_malformed_json_is_400[{"username": "abc_def", "display_name": NaN, "password": "Twelve-chars"}] PASSED [  6%]
student-tests/test_api.py::test_malformed_json_is_400[{"username": "abc_def", "display_name": "x", "password": "Twelve-chars"}{"a": 1}] PASSED [  6%]
student-tests/test_api.py::test_malformed_json_is_400[{"username": "abc_def", "display_name": "\ud800", "password": "Twelve-chars"}] PASSED [  6%]
student-tests/test_api.py::test_invalid_registration_fields_are_400[body0] PASSED [  6%]
student-tests/test_api.py::test_invalid_registration_fields_are_400[body1] PASSED [  7%]
student-tests/test_api.py::test_invalid_registration_fields_are_400[body2] PASSED [  7%]
student-tests/test_api.py::test_invalid_registration_fields_are_400[body3] PASSED [  7%]
student-tests/test_api.py::test_invalid_registration_fields_are_400[body4] PASSED [  7%]
student-tests/test_api.py::test_invalid_registration_fields_are_400[body5] PASSED [  8%]
student-tests/test_api.py::test_unicode_limits_are_code_points_and_nul_is_stored PASSED [  8%]
student-tests/test_api.py::test_oversized_body_and_wrong_content_type PASSED [  8%]
student-tests/test_api.py::test_chat_validation PASSED                   [  8%]
student-tests/test_api.py::test_foreign_chat_is_indistinguishable_from_missing PASSED [  9%]
student-tests/test_api.py::test_chat_list_order_pagination_and_isolation PASSED [  9%]
student-tests/test_api.py::test_history_pages_without_loss_or_duplicates PASSED [  9%]
student-tests/test_api.py::test_bad_limit_or_cursor_is_400[limit=0] PASSED [  9%]
student-tests/test_api.py::test_bad_limit_or_cursor_is_400[limit=101] PASSED [ 10%]
student-tests/test_api.py::test_bad_limit_or_cursor_is_400[limit=abc] PASSED [ 10%]
student-tests/test_api.py::test_bad_limit_or_cursor_is_400[limit=1&limit=2] PASSED [ 10%]
student-tests/test_api.py::test_bad_limit_or_cursor_is_400[cursor=] PASSED [ 11%]
student-tests/test_api.py::test_bad_limit_or_cursor_is_400[cursor=garbage] PASSED [ 11%]
student-tests/test_api.py::test_bad_limit_or_cursor_is_400[cursor=djF8bXx4fDF8Mg] PASSED [ 11%]
student-tests/test_api.py::test_bad_limit_or_cursor_is_400[cursor=djF8bXx4fDk5OTk5OTk5OTk5OTk5OTk5OTk5fHk=] PASSED [ 11%]
student-tests/test_api.py::test_cursor_bound_to_chat PASSED              [ 12%]
student-tests/test_api.py::test_read_after_write PASSED                  [ 12%]
student-tests/test_api.py::test_malformed_cursor_values_are_400_on_both_lists PASSED [ 12%]
student-tests/test_api.py::test_bad_message_body_is_400_and_nothing_is_stored[\xff] PASSED [ 12%]
student-tests/test_api.py::test_bad_message_body_is_400_and_nothing_is_stored[{"text":"first","TEXT":"second"}] PASSED [ 13%]
student-tests/test_api.py::test_bad_message_body_is_400_and_nothing_is_stored[{"text":"a","text":"b"}] PASSED [ 13%]
student-tests/test_api.py::test_bad_message_body_is_400_and_nothing_is_stored[{"text":123}] PASSED [ 13%]
student-tests/test_api.py::test_bad_message_body_is_400_and_nothing_is_stored[{"text":"valid"}}] PASSED [ 13%]
student-tests/test_api.py::test_bad_message_body_is_400_and_nothing_is_stored[{"text":"valid"}]] PASSED [ 14%]
student-tests/test_api.py::test_bad_message_body_is_400_and_nothing_is_stored[{"text":"x"} {}] PASSED [ 14%]
student-tests/test_api.py::test_bad_message_body_is_400_and_nothing_is_stored[{"text":"x","sender_id":"11111111-1111-4111-8111-111111111111"}] PASSED [ 14%]
student-tests/test_api.py::test_bad_message_body_is_400_and_nothing_is_stored[{"text":"x","attachment_ids":null}] PASSED [ 14%]
student-tests/test_api.py::test_bad_message_body_is_400_and_nothing_is_stored[{"text":"x","attachment_ids":["nope"]}] PASSED [ 15%]
student-tests/test_api.py::test_bad_message_body_is_400_and_nothing_is_stored[{"text":"   \n\t "}] PASSED [ 15%]
student-tests/test_api.py::test_ff_byte_body_on_registration_is_contract_error PASSED [ 15%]
student-tests/test_api.py::test_text_is_stored_verbatim_and_length_counts_raw_text PASSED [ 16%]
student-tests/test_api.py::test_unknown_attachment_ids_are_404 PASSED    [ 16%]
student-tests/test_api.py::test_member_ids_are_compared_as_uuids_not_strings PASSED [ 16%]
student-tests/test_api.py::test_non_ascii_or_garbage_bearer_is_401_not_500[Bearer \xe9] PASSED [ 16%]
student-tests/test_api.py::test_non_ascii_or_garbage_bearer_is_401_not_500[Bearer .] PASSED [ 17%]
student-tests/test_api.py::test_non_ascii_or_garbage_bearer_is_401_not_500[Bearer a b] PASSED [ 17%]
student-tests/test_api.py::test_non_ascii_or_garbage_bearer_is_401_not_500[Bearer \xe9\xe9\xe9\xe9\xe9\xe9\xe9\xe9\xe9\xe9\xe9\xe9\xe9\xe9\xe9\xe9\xe9\xe9\xe9\xe9\xe9\xe9\xe9\xe9\xe9\xe9\xe9\xe9\xe9\xe9\xe9\xe9\xe9\xe9\xe9\xe9\xe9\xe9\xe9\xe9\xe9\xe9\xe9] PASSED [ 17%]
student-tests/test_api.py::test_non_ascii_or_garbage_bearer_is_401_not_500[bearer\taaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa] PASSED [ 17%]
student-tests/test_api.py::test_login_with_a_body_is_rejected PASSED     [ 18%]
student-tests/test_api.py::test_password_range_is_12_to_128_code_points PASSED [ 18%]
student-tests/test_api.py::test_every_api_response_carries_instance_and_request_id PASSED [ 18%]
student-tests/test_api.py::test_unicode_whitespace_only_strings_are_400[\xa0] PASSED [ 18%]
student-tests/test_api.py::test_unicode_whitespace_only_strings_are_400[\u2003\u2003] PASSED [ 19%]
student-tests/test_api.py::test_unicode_whitespace_only_strings_are_400[ \xa0\t\u3000] PASSED [ 19%]
student-tests/test_api.py::test_odd_registration_bodies_are_400_and_the_api_survives[{"username":"num_probe","display_name":"x","password":1e1000}] PASSED [ 19%]
student-tests/test_api.py::test_odd_registration_bodies_are_400_and_the_api_survives[{"username":"ff_probe","display_name":"x","password":"12345678901\xff"}] PASSED [ 19%]
student-tests/test_api.py::test_odd_registration_bodies_are_400_and_the_api_survives[{"username":"num_probe","display_name":1,"password":"Twelve-chars-ok"}] PASSED [ 20%]
student-tests/test_api.py::test_more_than_100_members_is_400 PASSED      [ 20%]
student-tests/test_api.py::test_cursor_of_one_list_is_rejected_by_the_other PASSED [ 20%]
student-tests/test_attachments.py::test_png_and_jpeg_roundtrip_byte_for_byte PASSED [ 20%]
student-tests/test_attachments.py::test_metadata_reveals_no_storage_details PASSED [ 21%]
student-tests/test_attachments.py::test_original_is_not_stored_on_api_containers PASSED [ 21%]
student-tests/test_attachments.py::test_outsider_and_unknown_get_404 PASSED [ 21%]
student-tests/test_attachments.py::test_attachment_ids_are_checked_per_chat PASSED [ 22%]
student-tests/test_attachments.py::test_message_with_attachments_and_history PASSED [ 22%]
student-tests/test_attachments.py::test_idempotent_replay_with_attachments PASSED [ 22%]
student-tests/test_attachments.py::test_message_body_validation[{"attachment_ids":["%(a)s"]}] PASSED [ 22%]
student-tests/test_attachments.py::test_message_body_validation[{"text":null,"attachment_ids":["%(a)s"]}] PASSED [ 23%]
student-tests/test_attachments.py::test_message_body_validation[{"text":1,"attachment_ids":["%(a)s"]}] PASSED [ 23%]
student-tests/test_attachments.py::test_message_body_validation[{"text":"x","attachment_ids":null}] PASSED [ 23%]
student-tests/test_attachments.py::test_message_body_validation[{"text":"x","attachment_ids":"%(a)s"}] PASSED [ 23%]
student-tests/test_attachments.py::test_message_body_validation[{"text":"x","attachment_ids":{}}] PASSED [ 24%]
student-tests/test_attachments.py::test_message_body_validation[{"text":"x","attachment_ids":["%(a)s","%] PASSED [ 24%]
student-tests/test_attachments.py::test_message_body_validation[{"text":"x","attachment_ids":["%(a)s",1]] PASSED [ 24%]
student-tests/test_attachments.py::test_message_body_validation[{"text":"x","attachment_ids":["not-a-uui] PASSED [ 24%]
student-tests/test_attachments.py::test_message_body_validation[{"text":"","attachment_ids":[]}] PASSED [ 25%]
student-tests/test_attachments.py::test_message_body_validation[{"text":"   "}] PASSED [ 25%]
student-tests/test_attachments.py::test_message_body_validation[{"text":"x","attachment_ids":[],"sender_] PASSED [ 25%]
student-tests/test_attachments.py::test_at_most_ten_attachments PASSED   [ 25%]
student-tests/test_attachments.py::test_size_limit_through_the_load_balancer PASSED [ 26%]
student-tests/test_attachments.py::test_pixel_limit_before_decoding PASSED [ 26%]
student-tests/test_attachments.py::test_exactly_40_megapixels_is_accepted PASSED [ 26%]
student-tests/test_attachments.py::test_bad_content_is_415[png: first 33 bytes of the fixture] PASSED [ 27%]
student-tests/test_attachments.py::test_bad_content_is_415[png: truncated] PASSED [ 27%]
student-tests/test_attachments.py::test_bad_content_is_415[png: corrupt IDAT, valid CRC] PASSED [ 27%]
student-tests/test_attachments.py::test_bad_content_is_415[png: fewer rows than IHDR] PASSED [ 27%]
student-tests/test_attachments.py::test_bad_content_is_415[png: flipped byte] PASSED [ 28%]
student-tests/test_attachments.py::test_bad_content_is_415[png: bytes after IEND] PASSED [ 28%]
student-tests/test_attachments.py::test_bad_content_is_415[jpeg: no scan data after SOS] PASSED [ 28%]
student-tests/test_attachments.py::test_bad_content_is_415[jpeg: truncated] PASSED [ 28%]
student-tests/test_attachments.py::test_bad_content_is_415[review: png row filter 5] PASSED [ 29%]
student-tests/test_attachments.py::test_bad_content_is_415[review: png row filter 0xff] PASSED [ 29%]
student-tests/test_attachments.py::test_bad_content_is_415[review: png IDAT not-a-zlib-stream] PASSED [ 29%]
student-tests/test_attachments.py::test_bad_content_is_415[review: jpeg 27 bytes, no tables/scan] PASSED [ 29%]
student-tests/test_attachments.py::test_bad_content_is_415[review: jpeg SOS component not in SOF] PASSED [ 30%]
student-tests/test_attachments.py::test_bad_content_is_415[mime: png bytes declared jpeg] PASSED [ 30%]
student-tests/test_attachments.py::test_bad_content_is_415[mime: jpeg bytes declared png] PASSED [ 30%]
student-tests/test_attachments.py::test_bad_content_is_415[mime: gif declared png] PASSED [ 30%]
student-tests/test_attachments.py::test_bad_content_is_415[mime: html declared png] PASSED [ 31%]
student-tests/test_attachments.py::test_bad_content_is_415[type: text/plain] PASSED [ 31%]
student-tests/test_attachments.py::test_bad_content_is_415[type: octet-stream] PASSED [ 31%]
student-tests/test_attachments.py::test_bad_content_is_415[type: multipart] PASSED [ 32%]
student-tests/test_attachments.py::test_bad_content_is_415[type: missing] PASSED [ 32%]
student-tests/test_attachments.py::test_empty_body_is_400 PASSED         [ 32%]
student-tests/test_attachments.py::test_bad_filename_is_400[missing] PASSED [ 32%]
student-tests/test_attachments.py::test_bad_filename_is_400[filename=] PASSED [ 33%]
student-tests/test_attachments.py::test_bad_filename_is_400[filename=%20%20%20] PASSED [ 33%]
student-tests/test_attachments.py::test_bad_filename_is_400[filename=.] PASSED [ 33%]
student-tests/test_attachments.py::test_bad_filename_is_400[filename=..] PASSED [ 33%]
student-tests/test_attachments.py::test_bad_filename_is_400[filename=a%2Fb.png] PASSED [ 34%]
student-tests/test_attachments.py::test_bad_filename_is_400[filename=a%5Cb.png] PASSED [ 34%]
student-tests/test_attachments.py::test_bad_filename_is_400[filename=a%00b.png] PASSED [ 34%]
student-tests/test_attachments.py::test_bad_filename_is_400[filename=c1%C2%85.png] PASSED [ 34%]
student-tests/test_attachments.py::test_bad_filename_is_400[filename=tab%09.png] PASSED [ 35%]
student-tests/test_attachments.py::test_bad_filename_is_400[filename=photo%E2%80%AEgnp.exe] PASSED [ 35%]
student-tests/test_attachments.py::test_bad_filename_is_400[filename=%FF%FE.png] PASSED [ 35%]
student-tests/test_attachments.py::test_bad_filename_is_400[filename=a.png&filename=b.png] PASSED [ 35%]
student-tests/test_attachments.py::test_bad_filename_is_400[filename=aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa] PASSED [ 36%]
student-tests/test_attachments.py::test_unicode_filename_is_kept_and_safely_exposed PASSED [ 36%]
student-tests/test_attachments.py::test_variant_parameter PASSED         [ 36%]
student-tests/test_balancing.py::test_one_session_is_served_by_every_real_replica PASSED [ 37%]
student-tests/test_balancing.py::test_write_on_one_replica_is_read_on_the_other PASSED [ 37%]
student-tests/test_balancing.py::test_lb_stops_routing_to_a_replica_that_is_alive_but_not_ready[0-pg_hba] PASSED [ 37%]
student-tests/test_balancing.py::test_lb_stops_routing_to_a_replica_that_is_alive_but_not_ready[0-network] PASSED [ 37%]
student-tests/test_balancing.py::test_lb_stops_routing_to_a_replica_that_is_alive_but_not_ready[1-pg_hba] PASSED [ 38%]
student-tests/test_balancing.py::test_lb_stops_routing_to_a_replica_that_is_alive_but_not_ready[1-network] PASSED [ 38%]
student-tests/test_balancing.py::test_graceful_stop_of_each_replica_loses_no_request[0] PASSED [ 38%]
student-tests/test_balancing.py::test_graceful_stop_of_each_replica_loses_no_request[1] PASSED [ 38%]
student-tests/test_balancing.py::test_killed_replica_bounded_errors_recovery_and_no_duplicates[0] PASSED [ 39%]
student-tests/test_balancing.py::test_killed_replica_bounded_errors_recovery_and_no_duplicates[1] PASSED [ 39%]
student-tests/test_balancing.py::test_graceful_shutdown_order_in_logs PASSED [ 39%]
student-tests/test_balancing.py::test_full_restart_lb_rediscovers_all_replicas PASSED [ 39%]
student-tests/test_balancing.py::test_scale_up_and_down_is_picked_up_without_errors PASSED [ 40%]
student-tests/test_balancing.py::test_compose_policy_limits_ports_secrets_images PASSED [ 40%]
student-tests/test_balancing.py::test_running_containers_have_limits_and_no_bypass_ports PASSED [ 40%]
student-tests/test_balancing.py::test_migrations_ran_once_by_the_migrate_service PASSED [ 40%]
student-tests/test_consistency.py::test_interrupted_and_stalled_uploads_leave_nothing PASSED [ 41%]
student-tests/test_consistency.py::test_crash_after_staging_before_job_is_cleaned_by_janitor PASSED [ 41%]
student-tests/test_consistency.py::test_lost_answer_after_job_commit_still_becomes_ready PASSED [ 41%]
student-tests/test_consistency.py::test_fresh_pending_upload_is_not_touched_by_janitor PASSED [ 41%]
student-tests/test_db.py::test_registration_race_exactly_one_201_and_seven_409 PASSED [ 42%]
student-tests/test_db.py::test_create_chat_rolls_back_after_the_chat_row_was_inserted PASSED [ 42%]
student-tests/test_db.py::test_migrations_rerun_is_a_noop PASSED         [ 42%]
student-tests/test_db.py::test_100_messages_from_10_clients_keep_order_and_cursor_walk PASSED [ 43%]
student-tests/test_db.py::test_secrets_are_not_stored_in_plain_text PASSED [ 43%]
student-tests/test_explain.py::test_late_page_uses_index_range_not_filter PASSED [ 43%]
student-tests/test_failures.py::test_valkey_failure[stop] PASSED         [ 43%]
student-tests/test_failures.py::test_valkey_failure[pause] PASSED        [ 44%]
student-tests/test_failures.py::test_postgres_failure[stop] PASSED       [ 44%]
student-tests/test_failures.py::test_postgres_failure[pause] PASSED      [ 44%]
student-tests/test_failures.py::test_locked_table_gives_bounded_503 PASSED [ 44%]
student-tests/test_failures.py::test_logout_during_valkey_outage_is_never_lost PASSED [ 45%]
student-tests/test_idempotency.py::test_replay_returns_the_same_201_and_message_from_every_replica PASSED [ 45%]
student-tests/test_idempotency.py::test_other_body_with_the_same_key_is_409_and_keeps_the_original PASSED [ 45%]
student-tests/test_idempotency.py::test_key_order_and_missing_attachment_ids_are_the_same_body PASSED [ 45%]
student-tests/test_idempotency.py::test_missing_or_invalid_key_is_400[] PASSED [ 46%]
student-tests/test_idempotency.py::test_missing_or_invalid_key_is_400[aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa] PASSED [ 46%]
student-tests/test_idempotency.py::test_missing_or_invalid_key_is_400[\u043a\u043b\u044e\u0447] PASSED [ 46%]
student-tests/test_idempotency.py::test_missing_or_invalid_key_is_400[a b] PASSED [ 46%]
student-tests/test_idempotency.py::test_missing_or_invalid_key_is_400[a/b] PASSED [ 47%]
student-tests/test_idempotency.py::test_missing_or_invalid_key_is_400[a,b] PASSED [ 47%]
student-tests/test_idempotency.py::test_missing_or_invalid_key_is_400[a\tb] PASSED [ 47%]
student-tests/test_idempotency.py::test_missing_or_invalid_key_is_400[*] PASSED [ 48%]
student-tests/test_idempotency.py::test_repeated_key_header_is_400 PASSED [ 48%]
student-tests/test_idempotency.py::test_longest_key_and_every_allowed_character PASSED [ 48%]
student-tests/test_idempotency.py::test_scope_is_user_plus_chat_plus_key PASSED [ 48%]
student-tests/test_idempotency.py::test_outsider_and_revoked_session_never_see_the_stored_result PASSED [ 49%]
student-tests/test_idempotency.py::test_concurrent_same_key_through_different_replicas_creates_exactly_one PASSED [ 49%]
student-tests/test_idempotency.py::test_concurrent_same_key_different_bodies_one_wins PASSED [ 49%]
student-tests/test_idempotency.py::test_failure_after_the_key_insert_rolls_everything_back PASSED [ 49%]
student-tests/test_idempotency.py::test_client_timeout_then_retry_with_the_same_key_gives_the_committed_message PASSED [ 50%]
student-tests/test_idempotency.py::test_lock_timeout_is_a_transient_503_that_is_not_recorded PASSED [ 50%]
student-tests/test_idempotency.py::test_replay_after_the_serving_replica_is_stopped PASSED [ 50%]
student-tests/test_pipeline_flow.py::test_upload_is_202_queued_then_ready_with_contract_variants PASSED [ 50%]
student-tests/test_pipeline_flow.py::test_queued_attachment_is_attachable_failed_is_not PASSED [ 51%]
student-tests/test_pipeline_flow.py::test_worker_stopped_upload_202_content_409_restart_api_and_broker_then_ready PASSED [ 51%]
student-tests/test_pipeline_flow.py::test_broker_down_commit_to_publish_gap_is_closed_by_the_outbox PASSED [ 51%]
student-tests/test_pipeline_flow.py::test_relay_down_job_waits_in_outbox_not_lost PASSED [ 51%]
student-tests/test_pipeline_flow.py::test_crash_after_publish_before_confirm_is_recorded_gives_a_harmless_duplicate PASSED [ 52%]
student-tests/test_pipeline_flow.py::test_duplicate_and_reordered_deliveries_are_noops PASSED [ 52%]
student-tests/test_pipeline_flow.py::test_worker_crash_before_side_effect_lease_expires_and_job_completes PASSED [ 52%]
student-tests/test_pipeline_flow.py::test_worker_crash_after_s3_write_before_commit_republishes_without_duplicates PASSED [ 53%]
student-tests/test_pipeline_flow.py::test_worker_crash_after_commit_before_ack_redelivery_is_noop PASSED [ 53%]
student-tests/test_pipeline_flow.py::test_transient_errors_are_retried_with_jittered_backoff PASSED [ 53%]
student-tests/test_pipeline_flow.py::test_retry_exhausted_failed_registry_then_replay PASSED [ 53%]
student-tests/test_pipeline_flow.py::test_permanent_error_fails_at_once_without_retries PASSED [ 54%]
student-tests/test_pipeline_flow.py::test_memory_and_time_limits_of_the_worker PASSED [ 54%]
student-tests/test_pipeline_flow.py::test_bad_message_is_dead_lettered_not_processed PASSED [ 54%]
student-tests/test_pipeline_flow.py::test_hung_worker_loses_its_lease_and_cannot_publish PASSED [ 54%]
student-tests/test_pipeline_flow.py::test_graceful_worker_stop_finishes_the_running_attempt PASSED [ 55%]
student-tests/test_pipeline_flow.py::test_concurrency_is_bounded_by_prefetch PASSED [ 55%]
student-tests/test_pipeline_flow.py::test_queued_staging_is_never_deleted_even_after_retention PASSED [ 55%]
student-tests/test_pipeline_flow.py::test_retention_deletes_failed_staging_then_replay_is_refused PASSED [ 55%]
student-tests/test_pipeline_flow.py::test_cleanup_racing_a_replay_never_deletes_the_replayed_source PASSED [ 56%]
student-tests/test_pipeline_flow.py::test_reprocess_of_a_not_ready_upload_is_refused PASSED [ 56%]
student-tests/test_pipeline_flow.py::test_zz_invariants_hold_after_all_scenarios PASSED [ 56%]
student-tests/test_sessions.py::test_short_ttl_expires[valkey] PASSED    [ 56%]
student-tests/test_sessions.py::test_short_ttl_expires[postgres] PASSED  [ 57%]
student-tests/test_sessions.py::test_restart_does_not_extend_ttl PASSED  [ 57%]
student-tests/test_sessions.py::test_postgres_session_store PASSED       [ 57%]
student-tests/test_storage_failures.py::test_s3_outage_is_503_and_text_keeps_working[stop] PASSED [ 58%]
student-tests/test_storage_failures.py::test_s3_outage_is_503_and_text_keeps_working[pause] PASSED [ 58%]
student-tests/test_storage_failures.py::test_upload_survives_failover_of_the_serving_replica PASSED [ 58%]
student-tests/test_storage_failures.py::test_bucket_is_private_outside_the_api PASSED [ 58%]
student-tests/test_storage_failures.py::test_s3_restart_keeps_objects PASSED [ 59%]
student-tests/unit/test_images.py::test_public_fixture_is_accepted PASSED [ 59%]
student-tests/unit/test_images.py::test_valid_png_kinds[rgba] PASSED     [ 59%]
student-tests/unit/test_images.py::test_valid_png_kinds[palette] PASSED  [ 59%]
student-tests/unit/test_images.py::test_valid_png_kinds[1bit] PASSED     [ 60%]
student-tests/unit/test_images.py::test_valid_png_kinds[gray] PASSED     [ 60%]
student-tests/unit/test_images.py::test_valid_png_kinds[noise] PASSED    [ 60%]
student-tests/unit/test_images.py::test_valid_png_kinds[1x1] PASSED      [ 60%]
student-tests/unit/test_images.py::test_interlaced_png_is_accepted PASSED [ 61%]
student-tests/unit/test_images.py::test_broken_png_is_415[first 33 bytes of the fixture] PASSED [ 61%]
student-tests/unit/test_images.py::test_broken_png_is_415[truncated (no IEND)] PASSED [ 61%]
student-tests/unit/test_images.py::test_broken_png_is_415[truncated in IDAT] PASSED [ 61%]
student-tests/unit/test_images.py::test_broken_png_is_415[flipped byte -> CRC error] PASSED [ 62%]
student-tests/unit/test_images.py::test_broken_png_is_415[garbage IDAT with valid CRC] PASSED [ 62%]
student-tests/unit/test_images.py::test_broken_png_is_415[fewer rows than IHDR] PASSED [ 62%]
student-tests/unit/test_images.py::test_broken_png_is_415[bytes after IEND (polyglot)] PASSED [ 62%]
student-tests/unit/test_images.py::test_broken_png_is_415[text] PASSED   [ 63%]
student-tests/unit/test_images.py::test_broken_png_is_415[gif] PASSED    [ 63%]
student-tests/unit/test_images.py::test_broken_png_is_415[two bytes of a signature] PASSED [ 63%]
student-tests/unit/test_images.py::test_pixel_limit_is_checked_from_the_header PASSED [ 64%]
student-tests/unit/test_images.py::test_png_verification_is_streaming_and_fast PASSED [ 64%]
student-tests/unit/test_images.py::test_jpeg_header_is_parsed_incrementally PASSED [ 64%]
student-tests/unit/test_images.py::test_valid_jpeg[base] SKIPPED (dj...) [ 64%]
student-tests/unit/test_images.py::test_valid_jpeg[prog] SKIPPED (dj...) [ 65%]
student-tests/unit/test_images.py::test_broken_jpeg_is_415[no scan data after SOS-] SKIPPED [ 65%]
student-tests/unit/test_images.py::test_broken_jpeg_is_415[truncated-] SKIPPED [ 65%]
student-tests/unit/test_images.py::test_good_filenames[photo.png] PASSED [ 65%]
student-tests/unit/test_images.py::test_good_filenames[\u0444\u043e\u0442\u043e \u043e\u0442\u043f\u0443\u0441\u043a\u0430.jpg] PASSED [ 66%]
student-tests/unit/test_images.py::test_good_filenames[aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa] PASSED [ 66%]
student-tests/unit/test_images.py::test_good_filenames[emoji \U0001f468\u200d\U0001f469\u200d\U0001f467.png] PASSED [ 66%]
student-tests/unit/test_images.py::test_good_filenames[ x ] PASSED       [ 66%]
student-tests/unit/test_images.py::test_good_filenames[..x] PASSED       [ 67%]
student-tests/unit/test_images.py::test_bad_filenames[] PASSED           [ 67%]
student-tests/unit/test_images.py::test_bad_filenames[   ] PASSED        [ 67%]
student-tests/unit/test_images.py::test_bad_filenames[\u3000] PASSED     [ 67%]
student-tests/unit/test_images.py::test_bad_filenames[.] PASSED          [ 68%]
student-tests/unit/test_images.py::test_bad_filenames[..] PASSED         [ 68%]
student-tests/unit/test_images.py::test_bad_filenames[a/b.png] PASSED    [ 68%]
student-tests/unit/test_images.py::test_bad_filenames[a\\b.png] PASSED   [ 69%]
student-tests/unit/test_images.py::test_bad_filenames[a\x00b] PASSED     [ 69%]
student-tests/unit/test_images.py::test_bad_filenames[c1\x85.png] PASSED [ 69%]
student-tests/unit/test_images.py::test_bad_filenames[tab\t.png] PASSED  [ 69%]
student-tests/unit/test_images.py::test_bad_filenames[del\x7f.png] PASSED [ 70%]
student-tests/unit/test_images.py::test_bad_filenames[x\u2028y] PASSED   [ 70%]
student-tests/unit/test_images.py::test_bad_filenames[photo\u202egnp.exe] PASSED [ 70%]
student-tests/unit/test_images.py::test_bad_filenames[aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa] PASSED [ 70%]
student-tests/unit/test_images.py::test_filename_must_be_single_and_present PASSED [ 71%]
student-tests/unit/test_images.py::test_query_must_be_valid_utf8 PASSED  [ 71%]
student-tests/unit/test_pipeline.py::test_fit_rounds_down_without_upscaling[size0-256-expected0] PASSED [ 71%]
student-tests/unit/test_pipeline.py::test_fit_rounds_down_without_upscaling[size1-256-expected1] PASSED [ 71%]
student-tests/unit/test_pipeline.py::test_fit_rounds_down_without_upscaling[size2-256-expected2] PASSED [ 72%]
student-tests/unit/test_pipeline.py::test_fit_rounds_down_without_upscaling[size3-256-expected3] PASSED [ 72%]
student-tests/unit/test_pipeline.py::test_fit_rounds_down_without_upscaling[size4-256-expected4] PASSED [ 72%]
student-tests/unit/test_pipeline.py::test_fit_rounds_down_without_upscaling[size5-256-expected5] PASSED [ 72%]
student-tests/unit/test_pipeline.py::test_fit_rounds_down_without_upscaling[size6-256-expected6] PASSED [ 73%]
student-tests/unit/test_pipeline.py::test_fit_rounds_down_without_upscaling[size7-1280-expected7] PASSED [ 73%]
student-tests/unit/test_pipeline.py::test_center_square PASSED           [ 73%]
student-tests/unit/test_pipeline.py::test_public_fixture_variants_match_the_contract PASSED [ 74%]
student-tests/unit/test_pipeline.py::test_small_image_is_not_upscaled_but_crop_is PASSED [ 74%]
student-tests/unit/test_pipeline.py::test_big_image_is_bounded_by_1280 PASSED [ 74%]
student-tests/unit/test_pipeline.py::test_exif_orientation_is_applied_and_dropped PASSED [ 74%]
student-tests/unit/test_pipeline.py::test_alpha_is_composited_on_white_for_jpeg_and_kept_for_webp PASSED [ 75%]
student-tests/unit/test_pipeline.py::test_metadata_is_not_copied PASSED  [ 75%]
student-tests/unit/test_pipeline.py::test_png_modes_are_processed[RGBA] PASSED [ 75%]
student-tests/unit/test_pipeline.py::test_png_modes_are_processed[P] PASSED [ 75%]
student-tests/unit/test_pipeline.py::test_png_modes_are_processed[1] PASSED [ 76%]
student-tests/unit/test_pipeline.py::test_png_modes_are_processed[L] PASSED [ 76%]
student-tests/unit/test_pipeline.py::test_png_modes_are_processed[LA] PASSED [ 76%]
student-tests/unit/test_pipeline.py::test_png_modes_are_processed[RGB] PASSED [ 76%]
student-tests/unit/test_pipeline.py::test_16_bit_grey_is_scaled_not_clipped PASSED [ 77%]
student-tests/unit/test_pipeline.py::test_pipeline_versions_differ_in_bytes_not_in_geometry PASSED [ 77%]
student-tests/unit/test_pipeline.py::test_pixel_limit_is_checked_before_decoding PASSED [ 77%]
student-tests/unit/test_pipeline.py::test_child_process_protocol_round_trip PASSED [ 77%]
student-tests/unit/test_pipeline.py::test_encoded_message_matches_jobs_schema_and_carries_ids_only PASSED [ 78%]
student-tests/unit/test_pipeline.py::test_invalid_messages_are_rejected[change0] PASSED [ 78%]
student-tests/unit/test_pipeline.py::test_invalid_messages_are_rejected[change1] PASSED [ 78%]
student-tests/unit/test_pipeline.py::test_invalid_messages_are_rejected[change2] PASSED [ 79%]
student-tests/unit/test_pipeline.py::test_invalid_messages_are_rejected[change3] PASSED [ 79%]
student-tests/unit/test_pipeline.py::test_invalid_messages_are_rejected[change4] PASSED [ 79%]
student-tests/unit/test_pipeline.py::test_invalid_messages_are_rejected[change5] PASSED [ 79%]
student-tests/unit/test_pipeline.py::test_invalid_messages_are_rejected[change6] PASSED [ 80%]
student-tests/unit/test_pipeline.py::test_invalid_messages_are_rejected[change7] PASSED [ 80%]
student-tests/unit/test_pipeline.py::test_invalid_messages_are_rejected[change8] PASSED [ 80%]
student-tests/unit/test_pipeline.py::test_invalid_messages_are_rejected[change9] PASSED [ 80%]
student-tests/unit/test_pipeline.py::test_garbage_is_rejected PASSED     [ 81%]
student-tests/unit/test_pipeline.py::test_backoff_is_full_jitter_and_capped PASSED [ 81%]
student-tests/unit/test_pipeline.py::test_pipeline_settings PASSED       [ 81%]
student-tests/unit/test_unit.py::test_valid_passwords[Twelve-chars] PASSED [ 81%]
student-tests/unit/test_unit.py::test_valid_passwords[\u044f\u044f\u044f\u044f\u044f\u044f\u044f\u044f\u044f\u044f\u044f\u044f\u044f\u044f\u044f\u044f\u044f\u044f\u044f\u044f\u044f\u044f\u044f\u044f\u044f\u044f\u044f\u044f\u044f\u044f\u044f\u044f\u044f\u044f\u044f\u044f\u044f\u044f\u044f\u044f\u044f\u044f\u044f\u044f\u044f\u044f\u044f\u044f\u044f\u044f\u044f\u044f\u044f\u044f\u044f\u044f\u044f\u044f\u044f\u044f\u044f\u044f\u044f\u044f\u044f\u044f\u044f\u044f\u044f\u044f\u044f\u044f\u044f\u044f\u044f\u044f\u044f\u044f\u044f\u044f\u044f\u044f\u044f\u044f\u044f\u044f\u044f\u044f\u044f\u044f\u044f\u044f\u044f\u044f\u044f\u044f\u044f\u044f\u044f\u044f\u044f\u044f\u044f\u044f\u044f\u044f\u044f\u044f\u044f\u044f\u044f\u044f\u044f\u044f\u044f\u044f\u044f\u044f\u044f\u044f\u044f\u044f\u044f\u044f\u044f\u044f\u044f\u044f] PASSED [ 82%]
student-tests/unit/test_unit.py::test_valid_passwords[\u043f\u0430\u0440\u043e\u043b\u044c:\u0441:\u0434\u0432\u043e\u0435\u0442\u043e\u0447\u0438\u044f\u043c\u0438] PASSED [ 82%]
student-tests/unit/test_unit.py::test_valid_passwords[\U0001f600\U0001f600\U0001f600\U0001f600\U0001f600\U0001f600\U0001f600\U0001f600\U0001f600\U0001f600\U0001f600\U0001f600] PASSED [ 82%]
student-tests/unit/test_unit.py::test_valid_passwords[a b c d e f g] PASSED [ 82%]
student-tests/unit/test_unit.py::test_invalid_passwords[short-11ch] PASSED [ 83%]
student-tests/unit/test_unit.py::test_invalid_passwords[\u044f\u044f\u044f\u044f\u044f\u044f\u044f\u044f\u044f\u044f\u044f\u044f\u044f\u044f\u044f\u044f\u044f\u044f\u044f\u044f\u044f\u044f\u044f\u044f\u044f\u044f\u044f\u044f\u044f\u044f\u044f\u044f\u044f\u044f\u044f\u044f\u044f\u044f\u044f\u044f\u044f\u044f\u044f\u044f\u044f\u044f\u044f\u044f\u044f\u044f\u044f\u044f\u044f\u044f\u044f\u044f\u044f\u044f\u044f\u044f\u044f\u044f\u044f\u044f\u044f\u044f\u044f\u044f\u044f\u044f\u044f\u044f\u044f\u044f\u044f\u044f\u044f\u044f\u044f\u044f\u044f\u044f\u044f\u044f\u044f\u044f\u044f\u044f\u044f\u044f\u044f\u044f\u044f\u044f\u044f\u044f\u044f\u044f\u044f\u044f\u044f\u044f\u044f\u044f\u044f\u044f\u044f\u044f\u044f\u044f\u044f\u044f\u044f\u044f\u044f\u044f\u044f\u044f\u044f\u044f\u044f\u044f\u044f\u044f\u044f\u044f\u044f\u044f\u044f] PASSED [ 83%]
student-tests/unit/test_unit.py::test_invalid_passwords[            ] PASSED [ 83%]
student-tests/unit/test_unit.py::test_invalid_passwords[\t\n\u3000\t\n\u3000\t\n\u3000\t\n\u3000\t\n\u3000] PASSED [ 83%]
student-tests/unit/test_unit.py::test_invalid_passwords[\ud800\ud800\ud800\ud800\ud800\ud800\ud800\ud800\ud800\ud800\ud800\ud800] PASSED [ 84%]
student-tests/unit/test_unit.py::test_invalid_passwords[None] PASSED     [ 84%]
student-tests/unit/test_unit.py::test_invalid_passwords[123456789012] PASSED [ 84%]
student-tests/unit/test_unit.py::test_text_may_contain_nul_but_not_lone_surrogates PASSED [ 85%]
student-tests/unit/test_unit.py::test_cursor_roundtrip_and_binding PASSED [ 85%]
student-tests/unit/test_unit.py::test_broken_cursors_are_400_not_500[v1|m|3f2c7a5e-0b7d-4a35-9a43-8d1f0f3b2c11|253402300800000000|11111111-1111-4111-8111-111111111111] PASSED [ 85%]
student-tests/unit/test_unit.py::test_broken_cursors_are_400_not_500[v1|m|3f2c7a5e-0b7d-4a35-9a43-8d1f0f3b2c11|9999999999999999999|11111111-1111-4111-8111-111111111111] PASSED [ 85%]
student-tests/unit/test_unit.py::test_broken_cursors_are_400_not_500[v1|m|3f2c7a5e-0b7d-4a35-9a43-8d1f0f3b2c11|-1|11111111-1111-4111-8111-111111111111] PASSED [ 86%]
student-tests/unit/test_unit.py::test_broken_cursors_are_400_not_500[v1|m|3f2c7a5e-0b7d-4a35-9a43-8d1f0f3b2c11|1|not-a-uuid] PASSED [ 86%]
student-tests/unit/test_unit.py::test_broken_cursors_are_400_not_500[v1|m|3f2c7a5e-0b7d-4a35-9a43-8d1f0f3b2c11|1|11111111-1111-4111-8111-11111111111G] PASSED [ 86%]
student-tests/unit/test_unit.py::test_broken_cursors_are_400_not_500[v2|m|3f2c7a5e-0b7d-4a35-9a43-8d1f0f3b2c11|1|11111111-1111-4111-8111-111111111111] PASSED [ 86%]
student-tests/unit/test_unit.py::test_time_helpers_are_exact PASSED      [ 87%]
student-tests/unit/test_unit.py::test_basic_is_parsed_and_password_may_contain_colons PASSED [ 87%]
student-tests/unit/test_unit.py::test_bad_basic_is_401_with_basic_challenge[None] PASSED [ 87%]
student-tests/unit/test_unit.py::test_bad_basic_is_401_with_basic_challenge[] PASSED [ 87%]
student-tests/unit/test_unit.py::test_bad_basic_is_401_with_basic_challenge[Basic] PASSED [ 88%]
student-tests/unit/test_unit.py::test_bad_basic_is_401_with_basic_challenge[Basic \xe9] PASSED [ 88%]
student-tests/unit/test_unit.py::test_bad_basic_is_401_with_basic_challenge[Basic !!!!] PASSED [ 88%]
student-tests/unit/test_unit.py::test_bad_basic_is_401_with_basic_challenge[Basic bm8tY29sb24=] PASSED [ 88%]
student-tests/unit/test_unit.py::test_bad_basic_is_401_with_basic_challenge[Basic //46cHc=] PASSED [ 89%]
student-tests/unit/test_unit.py::test_bad_basic_is_401_with_basic_challenge[Basic OnBhc3N3b3Jk] PASSED [ 89%]
student-tests/unit/test_unit.py::test_bad_basic_is_401_with_basic_challenge[Basic YWxpY2U6] PASSED [ 89%]
student-tests/unit/test_unit.py::test_bad_basic_is_401_with_basic_challenge[Basic 0JDQu9C40YHQsDpwdw==] PASSED [ 90%]
student-tests/unit/test_unit.py::test_bad_basic_is_401_with_basic_challenge[Bearer aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa] PASSED [ 90%]
student-tests/unit/test_unit.py::test_bad_basic_is_401_with_basic_challenge[Basic AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA] PASSED [ 90%]
student-tests/unit/test_unit.py::test_bad_bearer_is_401_with_bearer_challenge[None] PASSED [ 90%]
student-tests/unit/test_unit.py::test_bad_bearer_is_401_with_bearer_challenge[] PASSED [ 91%]
student-tests/unit/test_unit.py::test_bad_bearer_is_401_with_bearer_challenge[Bearer] PASSED [ 91%]
student-tests/unit/test_unit.py::test_bad_bearer_is_401_with_bearer_challenge[Bearer short] PASSED [ 91%]
student-tests/unit/test_unit.py::test_bad_bearer_is_401_with_bearer_challenge[Bearer aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa!] PASSED [ 91%]
student-tests/unit/test_unit.py::test_bad_bearer_is_401_with_bearer_challenge[Basic YWxpY2U6cGFzc3dvcmQtMTIz] PASSED [ 92%]
student-tests/unit/test_unit.py::test_bad_bearer_is_401_with_bearer_challenge[Token aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa] PASSED [ 92%]
student-tests/unit/test_unit.py::test_bad_bearer_is_401_with_bearer_challenge[Bearer \xe9\xe9\xe9\xe9\xe9\xe9\xe9\xe9\xe9\xe9\xe9\xe9\xe9\xe9\xe9\xe9\xe9\xe9\xe9\xe9\xe9\xe9\xe9\xe9\xe9\xe9\xe9\xe9\xe9\xe9\xe9\xe9\xe9\xe9\xe9\xe9\xe9\xe9\xe9\xe9\xe9\xe9\xe9] PASSED [ 92%]
student-tests/unit/test_unit.py::test_bearer_ok PASSED                   [ 92%]
student-tests/unit/test_unit.py::test_argon2id_hash_and_verify PASSED    [ 93%]
student-tests/unit/test_unit.py::test_s3_settings_are_validated_and_contract_limits_cannot_be_raised PASSED [ 93%]
student-tests/unit/test_unit.py::test_settings_read_secret_files_and_contract_names PASSED [ 93%]
student-tests/unit/test_unit.py::test_valid_idempotency_keys[a] PASSED   [ 93%]
student-tests/unit/test_unit.py::test_valid_idempotency_keys[kkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkk] PASSED [ 94%]
student-tests/unit/test_unit.py::test_valid_idempotency_keys[A-Za-z0-9._:-] PASSED [ 94%]
student-tests/unit/test_unit.py::test_valid_idempotency_keys[2026-10-16T10:00:00.1] PASSED [ 94%]
student-tests/unit/test_unit.py::test_invalid_idempotency_keys[None] PASSED [ 95%]
student-tests/unit/test_unit.py::test_invalid_idempotency_keys[] PASSED  [ 95%]
student-tests/unit/test_unit.py::test_invalid_idempotency_keys[kkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkk] PASSED [ 95%]
student-tests/unit/test_unit.py::test_invalid_idempotency_keys[\u043a\u043b\u044e\u0447] PASSED [ 95%]
student-tests/unit/test_unit.py::test_invalid_idempotency_keys[a b] PASSED [ 96%]
student-tests/unit/test_unit.py::test_invalid_idempotency_keys[a/b] PASSED [ 96%]
student-tests/unit/test_unit.py::test_invalid_idempotency_keys[a,b] PASSED [ 96%]
student-tests/unit/test_unit.py::test_invalid_idempotency_keys[a\tb] PASSED [ 96%]
student-tests/unit/test_unit.py::test_invalid_idempotency_keys[a\x00b] PASSED [ 97%]
student-tests/unit/test_unit.py::test_invalid_idempotency_keys[*] PASSED [ 97%]
student-tests/unit/test_unit.py::test_invalid_idempotency_keys[\xe9] PASSED [ 97%]
student-tests/unit/test_unit.py::test_duplicate_keys_and_garbage_json_are_rejected[{"text":"a","text":"b"}] PASSED [ 97%]
student-tests/unit/test_unit.py::test_duplicate_keys_and_garbage_json_are_rejected[{"a":{"x":1,"x":2}}] PASSED [ 98%]
student-tests/unit/test_unit.py::test_duplicate_keys_and_garbage_json_are_rejected[\xff] PASSED [ 98%]
student-tests/unit/test_unit.py::test_duplicate_keys_and_garbage_json_are_rejected[{"text":"x"} {}] PASSED [ 98%]
student-tests/unit/test_unit.py::test_attachment_ids_absent_equals_empty_and_is_validated PASSED [ 98%]
student-tests/unit/test_unit.py::test_request_fingerprint_ignores_key_order_and_default_attachments PASSED [ 99%]
student-tests/unit/test_unit.py::test_instance_id_defaults_to_hostname_and_is_validated PASSED [ 99%]
student-tests/unit/test_unit.py::test_idempotency_ttl_cannot_be_below_24_hours PASSED [ 99%]
student-tests/unit/test_unit.py::test_message_write_path_setting PASSED  [100%]

================= 377 passed, 4 skipped in 1515.54s (0:25:15) =================
[exit 0, 1516.9 s]
