date: 2026-10-28T17:14:51Z  commit: 6468ee2
$ make student-test PYTEST_ARGS=-v
.venv/bin/pytest -v
============================= test session starts ==============================
platform darwin -- Python 3.14.5, pytest-9.1.1, pluggy-1.6.0 -- /Users/artemkostylev/projects/learning/HL/labs/mtusi2026lab2/.venv/bin/python
cachedir: .pytest_cache
rootdir: /Users/artemkostylev/projects/learning/HL/labs/mtusi2026lab2
configfile: pyproject.toml
testpaths: student-tests
plugins: asyncio-1.4.0, anyio-4.15.1
asyncio: mode=Mode.AUTO, debug=False, asyncio_default_fixture_loop_scope=function, asyncio_default_test_loop_scope=function
collecting ... collected 234 items / 13 deselected / 221 selected

student-tests/api/test_access.py::test_outsider_gets_404_on_chat PASSED  [  0%]
student-tests/api/test_access.py::test_unknown_chat_is_indistinguishable_from_foreign PASSED [  0%]
student-tests/api/test_access.py::test_outsider_cannot_write PASSED      [  1%]
student-tests/api/test_access.py::test_outsider_cannot_read_history PASSED [  1%]
student-tests/api/test_access.py::test_access_checked_before_body PASSED [  2%]
student-tests/api/test_access.py::test_chat_list_hides_foreign_chats PASSED [  2%]
student-tests/api/test_access.py::test_403_is_never_used PASSED          [  3%]
student-tests/api/test_access.py::test_outsider_does_not_wait_for_members_lock PASSED [  3%]
student-tests/api/test_bounded_contexts.py::test_identity_does_not_know_about_messaging PASSED [  4%]
student-tests/api/test_bounded_contexts.py::test_domains_do_not_import_infrastructure PASSED [  4%]
student-tests/api/test_bounded_contexts.py::test_core_layers_do_not_import_pydantic PASSED [  4%]
student-tests/api/test_bounded_contexts.py::test_shared_knows_nothing_about_zones PASSED [  5%]
student-tests/api/test_bounded_contexts.py::test_shared_core_is_free_of_transport PASSED [  5%]
student-tests/api/test_bounded_contexts.py::test_shared_core_holds_only_platform PASSED [  6%]
student-tests/api/test_bounded_contexts.py::test_shared_entrypoints_hold_only_transport PASSED [  6%]
student-tests/api/test_bounded_contexts.py::test_every_zone_owns_its_errors_events_and_commands PASSED [  7%]
student-tests/api/test_bounded_contexts.py::test_every_zone_owns_its_http_layer PASSED [  7%]
student-tests/api/test_bounded_contexts.py::test_only_main_knows_both_zones PASSED [  8%]
student-tests/api/test_bounded_contexts.py::test_application_has_no_separate_entrypoints_root PASSED [  8%]
student-tests/api/test_bounded_contexts.py::test_shared_source_mentions_no_domain_vocabulary PASSED [  9%]
student-tests/api/test_bounded_contexts.py::test_shared_declares_no_concrete_commands_or_events PASSED [  9%]
student-tests/api/test_bounded_contexts.py::test_shared_has_no_test_doubles PASSED [  9%]
student-tests/api/test_bounded_contexts.py::test_zone_errors_do_not_leak_transport_codes PASSED [ 10%]
student-tests/api/test_bounded_contexts.py::test_sql_of_each_zone_reads_only_its_tables PASSED [ 10%]
student-tests/api/test_bounded_contexts.py::test_messaging_does_not_import_identity_at_all PASSED [ 11%]
student-tests/api/test_cache.py::test_second_check_is_served_from_cache PASSED [ 11%]
student-tests/api/test_cache.py::test_logout_writes_tombstone_before_database PASSED [ 12%]
student-tests/api/test_cache.py::test_logout_rejected_by_database_changes_nothing PASSED [ 12%]
student-tests/api/test_cache.py::test_fill_racing_with_logout_does_not_revive_token PASSED [ 13%]
student-tests/api/test_cache.py::test_flushall_loses_nothing PASSED      [ 13%]
student-tests/api/test_cache.py::test_unreachable_cache_is_bypassed_without_anonymous_access PASSED [ 14%]
student-tests/api/test_concurrency.py::test_hundred_messages_from_ten_clients PASSED [ 14%]
student-tests/api/test_concurrency.py::test_parallel_registration_keeps_username_unique PASSED [ 14%]
student-tests/api/test_concurrency.py::test_parallel_chat_creation_is_atomic PASSED [ 15%]
student-tests/api/test_consistency.py::test_registration_is_visible_to_chats_immediately PASSED [ 15%]
student-tests/api/test_consistency.py::test_parallel_registrations_are_all_usable_as_members PASSED [ 16%]
student-tests/api/test_consistency.py::test_rejected_registration_leaves_no_trace PASSED [ 16%]
student-tests/api/test_consistency.py::test_failed_chat_creation_rolls_back_both_tables PASSED [ 17%]
student-tests/api/test_consistency.py::test_rejected_message_does_not_enter_history PASSED [ 17%]
student-tests/api/test_consistency.py::test_confirmed_write_is_visible_to_next_read PASSED [ 18%]
student-tests/api/test_consistency.py::test_parallel_writes_across_zones_keep_counts_consistent PASSED [ 18%]
student-tests/api/test_consistency.py::test_chat_membership_survives_parallel_reads_and_writes PASSED [ 19%]
student-tests/api/test_events.py::test_event_has_no_message_text PASSED  [ 19%]
student-tests/api/test_events.py::test_every_subscriber_receives_event PASSED [ 19%]
student-tests/api/test_events.py::test_failing_subscriber_does_not_block_others PASSED [ 20%]
student-tests/api/test_events.py::test_queue_overflow_drops_events_without_raising PASSED [ 20%]
student-tests/api/test_events.py::test_publication_does_not_delay_response PASSED [ 21%]
student-tests/api/test_events.py::test_null_logger_hides_everything PASSED [ 21%]
student-tests/api/test_migrations.py::test_migrations_are_ordered_and_versioned PASSED [ 22%]
student-tests/api/test_migrations.py::test_rerun_changes_nothing PASSED  [ 22%]
student-tests/api/test_migrations.py::test_changed_migration_is_refused PASSED [ 23%]
student-tests/api/test_migrations.py::test_sender_must_be_member_even_bypassing_api PASSED [ 23%]
student-tests/api/test_migrations.py::test_database_name_argument_replaces_only_the_database PASSED [ 23%]
student-tests/api/test_negative.py::test_malformed_json PASSED           [ 24%]
student-tests/api/test_negative.py::test_unexpected_field PASSED         [ 24%]
student-tests/api/test_negative.py::test_wrong_types PASSED              [ 25%]
student-tests/api/test_negative.py::test_invalid_registration[body0] PASSED [ 25%]
student-tests/api/test_negative.py::test_invalid_registration[body1] PASSED [ 26%]
student-tests/api/test_negative.py::test_invalid_registration[body2] PASSED [ 26%]
student-tests/api/test_negative.py::test_invalid_registration[body3] PASSED [ 27%]
student-tests/api/test_negative.py::test_invalid_registration[body4] PASSED [ 27%]
student-tests/api/test_negative.py::test_invalid_registration[body5] PASSED [ 28%]
student-tests/api/test_negative.py::test_invalid_registration[body6] PASSED [ 28%]
student-tests/api/test_negative.py::test_invalid_registration[body7] PASSED [ 28%]
student-tests/api/test_negative.py::test_invalid_registration[body8] PASSED [ 29%]
student-tests/api/test_negative.py::test_invalid_registration[body9] PASSED [ 29%]
student-tests/api/test_negative.py::test_invalid_registration[body10] PASSED [ 30%]
student-tests/api/test_negative.py::test_duplicate_username PASSED       [ 30%]
student-tests/api/test_negative.py::test_missing_identity PASSED         [ 31%]
student-tests/api/test_negative.py::test_invalid_bearer[] PASSED         [ 31%]
student-tests/api/test_negative.py::test_invalid_bearer[Bearer] PASSED   [ 32%]
student-tests/api/test_negative.py::test_invalid_bearer[Bearer ] PASSED  [ 32%]
student-tests/api/test_negative.py::test_invalid_bearer[Bearer not a token] PASSED [ 33%]
student-tests/api/test_negative.py::test_invalid_bearer[Bearer xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx] PASSED [ 33%]
student-tests/api/test_negative.py::test_invalid_bearer[Token abcdef] PASSED [ 33%]
student-tests/api/test_negative.py::test_invalid_bearer[11111111-1111-4111-8111-111111111111] PASSED [ 34%]
student-tests/api/test_negative.py::test_user_id_header_alone_is_ignored PASSED [ 34%]
student-tests/api/test_negative.py::test_identity_checked_before_body PASSED [ 35%]
student-tests/api/test_negative.py::test_empty_message_rejected PASSED   [ 35%]
student-tests/api/test_negative.py::test_long_message_rejected PASSED    [ 36%]
student-tests/api/test_negative.py::test_sender_id_not_accepted PASSED   [ 36%]
student-tests/api/test_negative.py::test_invalid_chat_creation[body0] PASSED [ 37%]
student-tests/api/test_negative.py::test_invalid_chat_creation[body1] PASSED [ 37%]
student-tests/api/test_negative.py::test_invalid_chat_creation[body2] PASSED [ 38%]
student-tests/api/test_negative.py::test_invalid_chat_creation[body3] PASSED [ 38%]
student-tests/api/test_negative.py::test_invalid_chat_creation[body4] PASSED [ 38%]
student-tests/api/test_negative.py::test_invalid_chat_creation[body5] PASSED [ 39%]
student-tests/api/test_negative.py::test_creator_must_be_member PASSED   [ 39%]
student-tests/api/test_negative.py::test_unknown_member_rejected PASSED  [ 40%]
student-tests/api/test_negative.py::test_bad_chat_id_in_path PASSED      [ 40%]
student-tests/api/test_operability.py::test_health_needs_no_identity PASSED [ 41%]
student-tests/api/test_operability.py::test_every_response_carries_request_id PASSED [ 41%]
student-tests/api/test_operability.py::test_client_request_id_is_preserved PASSED [ 42%]
student-tests/api/test_operability.py::test_unknown_public_route_is_404 PASSED [ 42%]
student-tests/api/test_operability.py::test_unknown_protected_route_needs_identity PASSED [ 42%]
student-tests/api/test_operability.py::test_method_not_allowed_is_hidden PASSED [ 43%]
student-tests/api/test_operability.py::test_logs_do_not_contain_message_text PASSED [ 43%]
student-tests/api/test_operability.py::test_log_lines_are_json PASSED    [ 44%]
student-tests/api/test_operability.py::test_body_limit_returns_413 PASSED [ 44%]
student-tests/api/test_operability.py::test_chunked_body_is_limited_too PASSED [ 45%]
student-tests/api/test_operability.py::test_ready_turns_unavailable_without_database PASSED [ 45%]
student-tests/api/test_operability.py::test_protected_request_is_503_not_401_without_database PASSED [ 46%]
student-tests/api/test_operability.py::test_state_survives_new_process PASSED [ 46%]
student-tests/api/test_operability.py::test_logs_do_not_contain_credentials PASSED [ 47%]
student-tests/api/test_pagination.py::test_full_walk_has_no_gaps_or_repeats PASSED [ 47%]
student-tests/api/test_pagination.py::test_limit_may_change_between_pages PASSED [ 47%]
student-tests/api/test_pagination.py::test_last_page_closes_history PASSED [ 48%]
student-tests/api/test_pagination.py::test_cursor_is_shared_between_members PASSED [ 48%]
student-tests/api/test_pagination.py::test_cursor_from_another_chat_is_rejected PASSED [ 49%]
student-tests/api/test_pagination.py::test_broken_cursor_is_rejected[garbage] PASSED [ 49%]
student-tests/api/test_pagination.py::test_broken_cursor_is_rejected[1.2.3.4] PASSED [ 50%]
student-tests/api/test_pagination.py::test_broken_cursor_is_rejected[%20] PASSED [ 50%]
student-tests/api/test_pagination.py::test_broken_cursor_is_rejected[] PASSED [ 51%]
student-tests/api/test_pagination.py::test_limit_out_of_range[0] PASSED  [ 51%]
student-tests/api/test_pagination.py::test_limit_out_of_range[-1] PASSED [ 52%]
student-tests/api/test_pagination.py::test_limit_out_of_range[101] PASSED [ 52%]
student-tests/api/test_pagination.py::test_limit_out_of_range[abc] PASSED [ 52%]
student-tests/api/test_pagination.py::test_limit_out_of_range[1.5] PASSED [ 53%]
student-tests/api/test_pagination.py::test_limit_out_of_range[] PASSED   [ 53%]
student-tests/api/test_pagination.py::test_default_limit_is_50 PASSED    [ 54%]
student-tests/api/test_pagination.py::test_unknown_query_parameter_is_ignored PASSED [ 54%]
student-tests/api/test_pagination.py::test_chat_list_pagination PASSED   [ 55%]
student-tests/api/test_pool.py::test_exhausted_pool_answers_503_in_bounded_time PASSED [ 55%]
student-tests/api/test_pool.py::test_statement_timeout_is_set_on_connections PASSED [ 56%]
student-tests/api/test_sessions.py::test_login_returns_session_for_registered_user PASSED [ 56%]
student-tests/api/test_sessions.py::test_registration_response_hides_password PASSED [ 57%]
student-tests/api/test_sessions.py::test_password_is_stored_as_argon2id PASSED [ 57%]
student-tests/api/test_sessions.py::test_session_stores_only_token_digest PASSED [ 57%]
student-tests/api/test_sessions.py::test_wrong_password_and_unknown_user_look_the_same PASSED [ 58%]
student-tests/api/test_sessions.py::test_login_without_valid_basic[headers0] PASSED [ 58%]
student-tests/api/test_sessions.py::test_login_without_valid_basic[headers1] PASSED [ 59%]
student-tests/api/test_sessions.py::test_login_without_valid_basic[headers2] PASSED [ 59%]
student-tests/api/test_sessions.py::test_login_without_valid_basic[headers3] PASSED [ 60%]
student-tests/api/test_sessions.py::test_password_with_colon_logs_in PASSED [ 60%]
student-tests/api/test_sessions.py::test_login_with_body_is_rejected PASSED [ 61%]
student-tests/api/test_sessions.py::test_basic_on_business_endpoint_gets_bearer_challenge PASSED [ 61%]
student-tests/api/test_sessions.py::test_user_id_header_does_not_override_owner PASSED [ 61%]
student-tests/api/test_sessions.py::test_authentication_precedes_validation PASSED [ 62%]
student-tests/api/test_sessions.py::test_logout_revokes_only_current_session PASSED [ 62%]
student-tests/api/test_sessions.py::test_short_ttl_session_expires PASSED [ 63%]
student-tests/api/test_sessions.py::test_expired_sessions_are_purged_on_next_login PASSED [ 63%]
student-tests/api/test_sessions.py::test_chat_routes_require_bearer PASSED [ 64%]
student-tests/api/test_timeout.py::test_timeout_returns_unavailable_error_body PASSED [ 64%]
student-tests/api/test_timeout.py::test_timeout_does_not_break_following_requests PASSED [ 65%]
student-tests/api/test_timeout.py::test_timeout_is_logged_without_message_text PASSED [ 65%]
student-tests/api/test_timeout.py::test_normal_request_is_not_affected_by_timeout PASSED [ 66%]
student-tests/api/test_timeout.py::test_slow_event_handler_does_not_trigger_timeout PASSED [ 66%]
student-tests/api/test_timeout.py::test_healthcheck_stays_fast PASSED    [ 66%]
student-tests/api/test_wire_format.py::test_created_at_is_rfc3339_utc[whole-second] PASSED [ 67%]
student-tests/api/test_wire_format.py::test_created_at_is_rfc3339_utc[microseconds] PASSED [ 67%]
student-tests/unit/test_authentication.py::test_basic_splits_on_first_colon PASSED [ 68%]
student-tests/unit/test_authentication.py::test_basic_decodes_utf8_password PASSED [ 68%]
student-tests/unit/test_authentication.py::test_basic_scheme_is_case_insensitive PASSED [ 69%]
student-tests/unit/test_authentication.py::test_basic_rejects_malformed[] PASSED [ 69%]
student-tests/unit/test_authentication.py::test_basic_rejects_malformed[Basic] PASSED [ 70%]
student-tests/unit/test_authentication.py::test_basic_rejects_malformed[Basic ] PASSED [ 70%]
student-tests/unit/test_authentication.py::test_basic_rejects_malformed[Basic !!!not-base64!!!] PASSED [ 71%]
student-tests/unit/test_authentication.py::test_basic_rejects_malformed[Basic YWxpY2U] PASSED [ 71%]
student-tests/unit/test_authentication.py::test_basic_rejects_malformed[Basic bm8tY29sb24taGVyZQ==] PASSED [ 71%]
student-tests/unit/test_authentication.py::test_basic_rejects_malformed[Basic 0LDQu9C40YHQsDrQv9Cw0YDQvtC70Yw=] PASSED [ 72%]
student-tests/unit/test_authentication.py::test_basic_rejects_malformed[Basic YWxpY2U6//4=] PASSED [ 72%]
student-tests/unit/test_authentication.py::test_basic_rejects_malformed[Bearer YWxpY2U6c2VjcmV0] PASSED [ 73%]
student-tests/unit/test_authentication.py::test_bearer_accepts_token68 PASSED [ 73%]
student-tests/unit/test_authentication.py::test_bearer_rejects_malformed[] PASSED [ 74%]
student-tests/unit/test_authentication.py::test_bearer_rejects_malformed[Bearer] PASSED [ 74%]
student-tests/unit/test_authentication.py::test_bearer_rejects_malformed[Bearer ] PASSED [ 75%]
student-tests/unit/test_authentication.py::test_bearer_rejects_malformed[Bearer a b] PASSED [ 75%]
student-tests/unit/test_authentication.py::test_bearer_rejects_malformed[Basic abc] PASSED [ 76%]
student-tests/unit/test_authentication.py::test_bearer_rejects_malformed[xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx] PASSED [ 76%]
student-tests/unit/test_authentication.py::test_bearer_rejects_oversized_token PASSED [ 76%]
student-tests/unit/test_authentication.py::test_challenge_depends_only_on_path PASSED [ 77%]
student-tests/unit/test_cursor.py::test_roundtrip_preserves_key PASSED   [ 77%]
student-tests/unit/test_cursor.py::test_cursor_is_opaque PASSED          [ 78%]
student-tests/unit/test_cursor.py::test_cursor_from_another_scope_is_rejected PASSED [ 78%]
student-tests/unit/test_cursor.py::test_forged_cursor_is_rejected PASSED [ 79%]
student-tests/unit/test_cursor.py::test_broken_cursor_is_rejected[] PASSED [ 79%]
student-tests/unit/test_cursor.py::test_broken_cursor_is_rejected[garbage] PASSED [ 80%]
student-tests/unit/test_cursor.py::test_broken_cursor_is_rejected[1.2.3] PASSED [ 80%]
student-tests/unit/test_cursor.py::test_broken_cursor_is_rejected[2.1.2.3] PASSED [ 80%]
student-tests/unit/test_cursor.py::test_broken_cursor_is_rejected[1.notanumber.ff.AAAA] PASSED [ 81%]
student-tests/unit/test_cursor.py::test_broken_cursor_is_rejected[1.1.zz.AAAA] PASSED [ 81%]
student-tests/unit/test_cursor.py::test_tampered_payload_is_rejected PASSED [ 82%]
student-tests/unit/test_domain.py::test_username_rejects_invalid[ab] PASSED [ 82%]
student-tests/unit/test_domain.py::test_username_rejects_invalid[aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa] PASSED [ 83%]
student-tests/unit/test_domain.py::test_username_rejects_invalid[Alice] PASSED [ 83%]
student-tests/unit/test_domain.py::test_username_rejects_invalid[alice-01] PASSED [ 84%]
student-tests/unit/test_domain.py::test_username_rejects_invalid[\u0430\u043b\u0438\u0441\u0430] PASSED [ 84%]
student-tests/unit/test_domain.py::test_username_rejects_invalid[] PASSED [ 85%]
student-tests/unit/test_domain.py::test_username_rejects_invalid[a b] PASSED [ 85%]
student-tests/unit/test_domain.py::test_username_rejects_invalid[alice\n] PASSED [ 85%]
student-tests/unit/test_domain.py::test_username_rejects_invalid[alice\r\n] PASSED [ 86%]
student-tests/unit/test_domain.py::test_username_accepts_valid[abc] PASSED [ 86%]
student-tests/unit/test_domain.py::test_username_accepts_valid[a_b_9] PASSED [ 87%]
student-tests/unit/test_domain.py::test_username_accepts_valid[aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa] PASSED [ 87%]
student-tests/unit/test_domain.py::test_display_name_rejects_invalid[] PASSED [ 88%]
student-tests/unit/test_domain.py::test_display_name_rejects_invalid[   ] PASSED [ 88%]
student-tests/unit/test_domain.py::test_display_name_rejects_invalid[\t\n] PASSED [ 89%]
student-tests/unit/test_domain.py::test_display_name_rejects_invalid[xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx] PASSED [ 89%]
student-tests/unit/test_domain.py::test_password_rejects_invalid[] PASSED [ 90%]
student-tests/unit/test_domain.py::test_password_rejects_invalid[                    ] PASSED [ 90%]
student-tests/unit/test_domain.py::test_password_rejects_invalid[xxxxxxxxxxx] PASSED [ 90%]
student-tests/unit/test_domain.py::test_password_rejects_invalid[xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx] PASSED [ 91%]
student-tests/unit/test_domain.py::test_password_rejects_invalid[\t\t\t\t\t\t\t\t\t\t\t\t] PASSED [ 91%]
student-tests/unit/test_domain.py::test_password_counts_code_points[xxxxxxxxxxxx] PASSED [ 92%]
student-tests/unit/test_domain.py::test_password_counts_code_points[\u043f\u043f\u043f\u043f\u043f\u043f\u043f\u043f\u043f\u043f\u043f\u043f\u043f\u043f\u043f\u043f\u043f\u043f\u043f\u043f\u043f\u043f\u043f\u043f\u043f\u043f\u043f\u043f\u043f\u043f\u043f\u043f\u043f\u043f\u043f\u043f\u043f\u043f\u043f\u043f\u043f\u043f\u043f\u043f\u043f\u043f\u043f\u043f\u043f\u043f\u043f\u043f\u043f\u043f\u043f\u043f\u043f\u043f\u043f\u043f\u043f\u043f\u043f\u043f\u043f\u043f\u043f\u043f\u043f\u043f\u043f\u043f\u043f\u043f\u043f\u043f\u043f\u043f\u043f\u043f\u043f\u043f\u043f\u043f\u043f\u043f\u043f\u043f\u043f\u043f\u043f\u043f\u043f\u043f\u043f\u043f\u043f\u043f\u043f\u043f\u043f\u043f\u043f\u043f\u043f\u043f\u043f\u043f\u043f\u043f\u043f\u043f\u043f\u043f\u043f\u043f\u043f\u043f\u043f\u043f\u043f\u043f\u043f\u043f\u043f\u043f\u043f\u043f] PASSED [ 92%]
student-tests/unit/test_domain.py::test_password_counts_code_points[\u043f\u0430\u0440\u043e\u043b\u044c:\u0441:\u0434\u0432\u043e\u0435\u0442\u043e\u0447\u0438\u0435\u043c] PASSED [ 93%]
student-tests/unit/test_domain.py::test_password_counts_code_points[\U0001f44b\U0001f44b\U0001f44b\U0001f44b\U0001f44b\U0001f44b\U0001f44b\U0001f44b\U0001f44b\U0001f44b\U0001f44b\U0001f44b] PASSED [ 93%]
student-tests/unit/test_domain.py::test_password_is_not_printed PASSED   [ 94%]
student-tests/unit/test_domain.py::test_session_token_is_opaque_and_stored_as_digest PASSED [ 94%]
student-tests/unit/test_domain.py::test_session_tokens_are_unique PASSED [ 95%]
student-tests/unit/test_domain.py::test_message_text_counts_code_points_not_bytes PASSED [ 95%]
student-tests/unit/test_domain.py::test_message_text_rejects_blank PASSED [ 95%]
student-tests/unit/test_domain.py::test_chat_requires_creator_in_members PASSED [ 96%]
student-tests/unit/test_domain.py::test_chat_rejects_duplicate_members PASSED [ 96%]
student-tests/unit/test_domain.py::test_chat_rejects_more_than_hundred_members PASSED [ 97%]
student-tests/unit/test_domain.py::test_outsider_cannot_post PASSED      [ 97%]
student-tests/unit/test_domain.py::test_post_never_moves_history_back PASSED [ 98%]
student-tests/unit/test_domain.py::test_post_keeps_clock_when_it_is_ahead PASSED [ 98%]
student-tests/unit/test_domain.py::test_post_validates_membership_before_text PASSED [ 99%]
student-tests/unit/test_domain.py::test_user_registration_emits_event PASSED [ 99%]
student-tests/unit/test_domain.py::test_clock_is_strictly_increasing PASSED [100%]

===================== 221 passed, 13 deselected in 14.97s ======================
$ make student-test PYTEST_ARGS="-v -k 'rolls_back'"
student-tests/api/test_consistency.py::test_failed_chat_creation_rolls_back_both_tables PASSED [100%]
====================== 1 passed, 233 deselected in 1.58s =======================
$ make student-test PYTEST_ARGS="-v -k 'sessions or bearer'"
student-tests/api/test_negative.py::test_invalid_bearer[] PASSED         [  2%]
student-tests/api/test_negative.py::test_invalid_bearer[Bearer] PASSED   [  5%]
student-tests/api/test_negative.py::test_invalid_bearer[Bearer ] PASSED  [  8%]
student-tests/api/test_negative.py::test_invalid_bearer[Bearer not a token] PASSED [ 11%]
student-tests/api/test_negative.py::test_invalid_bearer[Bearer xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx] PASSED [ 14%]
student-tests/api/test_negative.py::test_invalid_bearer[Token abcdef] PASSED [ 17%]
student-tests/api/test_negative.py::test_invalid_bearer[11111111-1111-4111-8111-111111111111] PASSED [ 20%]
student-tests/api/test_sessions.py::test_login_returns_session_for_registered_user PASSED [ 23%]
student-tests/api/test_sessions.py::test_registration_response_hides_password PASSED [ 26%]
student-tests/api/test_sessions.py::test_password_is_stored_as_argon2id PASSED [ 29%]
student-tests/api/test_sessions.py::test_session_stores_only_token_digest PASSED [ 32%]
student-tests/api/test_sessions.py::test_wrong_password_and_unknown_user_look_the_same PASSED [ 35%]
student-tests/api/test_sessions.py::test_login_without_valid_basic[headers0] PASSED [ 38%]
student-tests/api/test_sessions.py::test_login_without_valid_basic[headers1] PASSED [ 41%]
student-tests/api/test_sessions.py::test_login_without_valid_basic[headers2] PASSED [ 44%]
student-tests/api/test_sessions.py::test_login_without_valid_basic[headers3] PASSED [ 47%]
student-tests/api/test_sessions.py::test_password_with_colon_logs_in PASSED [ 50%]
student-tests/api/test_sessions.py::test_login_with_body_is_rejected PASSED [ 52%]
student-tests/api/test_sessions.py::test_basic_on_business_endpoint_gets_bearer_challenge PASSED [ 55%]
student-tests/api/test_sessions.py::test_user_id_header_does_not_override_owner PASSED [ 58%]
student-tests/api/test_sessions.py::test_authentication_precedes_validation PASSED [ 61%]
student-tests/api/test_sessions.py::test_logout_revokes_only_current_session PASSED [ 64%]
student-tests/api/test_sessions.py::test_short_ttl_session_expires PASSED [ 67%]
student-tests/api/test_sessions.py::test_expired_sessions_are_purged_on_next_login PASSED [ 70%]
student-tests/api/test_sessions.py::test_chat_routes_require_bearer PASSED [ 73%]
student-tests/unit/test_authentication.py::test_basic_rejects_malformed[Bearer YWxpY2U6c2VjcmV0] PASSED [ 76%]
student-tests/unit/test_authentication.py::test_bearer_accepts_token68 PASSED [ 79%]
student-tests/unit/test_authentication.py::test_bearer_rejects_malformed[] PASSED [ 82%]
student-tests/unit/test_authentication.py::test_bearer_rejects_malformed[Bearer] PASSED [ 85%]
student-tests/unit/test_authentication.py::test_bearer_rejects_malformed[Bearer ] PASSED [ 88%]
student-tests/unit/test_authentication.py::test_bearer_rejects_malformed[Bearer a b] PASSED [ 91%]
student-tests/unit/test_authentication.py::test_bearer_rejects_malformed[Basic abc] PASSED [ 94%]
student-tests/unit/test_authentication.py::test_bearer_rejects_malformed[xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx] PASSED [ 97%]
student-tests/unit/test_authentication.py::test_bearer_rejects_oversized_token PASSED [100%]
====================== 34 passed, 200 deselected in 5.00s ======================
$ make student-test PYTEST_ARGS="-v -k 'expire or logout'"
student-tests/api/test_cache.py::test_logout_writes_tombstone_before_database PASSED [ 16%]
student-tests/api/test_cache.py::test_logout_rejected_by_database_changes_nothing PASSED [ 33%]
student-tests/api/test_cache.py::test_fill_racing_with_logout_does_not_revive_token PASSED [ 50%]
student-tests/api/test_sessions.py::test_logout_revokes_only_current_session PASSED [ 66%]
student-tests/api/test_sessions.py::test_short_ttl_session_expires PASSED [ 83%]
student-tests/api/test_sessions.py::test_expired_sessions_are_purged_on_next_login PASSED [100%]
====================== 6 passed, 228 deselected in 4.83s =======================
$ make student-test PYTEST_ARGS="-v -k 'user_id'"
student-tests/api/test_negative.py::test_user_id_header_alone_is_ignored PASSED [ 50%]
student-tests/api/test_sessions.py::test_user_id_header_does_not_override_owner PASSED [100%]
====================== 2 passed, 232 deselected in 1.72s =======================
$ make student-test PYTEST_ARGS="-v -k 'outsider'"
student-tests/api/test_access.py::test_outsider_gets_404_on_chat PASSED  [ 20%]
student-tests/api/test_access.py::test_outsider_cannot_write PASSED      [ 40%]
student-tests/api/test_access.py::test_outsider_cannot_read_history PASSED [ 60%]
student-tests/api/test_access.py::test_outsider_does_not_wait_for_members_lock PASSED [ 80%]
student-tests/unit/test_domain.py::test_outsider_cannot_post PASSED      [100%]
====================== 5 passed, 229 deselected in 1.98s =======================
$ make student-test PYTEST_ARGS="-v -k 'cursor'"
student-tests/api/test_pagination.py::test_cursor_is_shared_between_members PASSED [  5%]
student-tests/api/test_pagination.py::test_cursor_from_another_chat_is_rejected PASSED [ 11%]
student-tests/api/test_pagination.py::test_broken_cursor_is_rejected[garbage] PASSED [ 17%]
student-tests/api/test_pagination.py::test_broken_cursor_is_rejected[1.2.3.4] PASSED [ 23%]
student-tests/api/test_pagination.py::test_broken_cursor_is_rejected[%20] PASSED [ 29%]
student-tests/api/test_pagination.py::test_broken_cursor_is_rejected[] PASSED [ 35%]
student-tests/unit/test_cursor.py::test_roundtrip_preserves_key PASSED   [ 41%]
student-tests/unit/test_cursor.py::test_cursor_is_opaque PASSED          [ 47%]
student-tests/unit/test_cursor.py::test_cursor_from_another_scope_is_rejected PASSED [ 52%]
student-tests/unit/test_cursor.py::test_forged_cursor_is_rejected PASSED [ 58%]
student-tests/unit/test_cursor.py::test_broken_cursor_is_rejected[] PASSED [ 64%]
student-tests/unit/test_cursor.py::test_broken_cursor_is_rejected[garbage] PASSED [ 70%]
student-tests/unit/test_cursor.py::test_broken_cursor_is_rejected[1.2.3] PASSED [ 76%]
student-tests/unit/test_cursor.py::test_broken_cursor_is_rejected[2.1.2.3] PASSED [ 82%]
student-tests/unit/test_cursor.py::test_broken_cursor_is_rejected[1.notanumber.ff.AAAA] PASSED [ 88%]
student-tests/unit/test_cursor.py::test_broken_cursor_is_rejected[1.1.zz.AAAA] PASSED [ 94%]
student-tests/unit/test_cursor.py::test_tampered_payload_is_rejected PASSED [100%]
====================== 17 passed, 217 deselected in 2.07s ======================
$ make student-test PYTEST_ARGS="-v -k 'body_limit or chunked'"
student-tests/api/test_operability.py::test_body_limit_returns_413 PASSED [ 50%]
student-tests/api/test_operability.py::test_chunked_body_is_limited_too PASSED [100%]
====================== 2 passed, 232 deselected in 1.54s =======================
$ make student-test PYTEST_ARGS="-v -k 'cache'"
student-tests/api/test_cache.py::test_second_check_is_served_from_cache PASSED [ 16%]
student-tests/api/test_cache.py::test_logout_writes_tombstone_before_database PASSED [ 33%]
student-tests/api/test_cache.py::test_logout_rejected_by_database_changes_nothing PASSED [ 50%]
student-tests/api/test_cache.py::test_fill_racing_with_logout_does_not_revive_token PASSED [ 66%]
student-tests/api/test_cache.py::test_flushall_loses_nothing PASSED      [ 83%]
student-tests/api/test_cache.py::test_unreachable_cache_is_bypassed_without_anonymous_access PASSED [100%]
====================== 6 passed, 228 deselected in 2.35s =======================
$ make student-test PYTEST_ARGS="-v -k 'pool'"
student-tests/api/test_pool.py::test_exhausted_pool_answers_503_in_bounded_time PASSED [ 50%]
student-tests/api/test_pool.py::test_statement_timeout_is_set_on_connections PASSED [100%]
====================== 2 passed, 232 deselected in 1.87s =======================
