# Student black-box tests (grade 4), one command $ C:\IT-labs\VNP\mtusi2026lab2\.venv\Scripts\python.exe -m pytest student-tests -v ============================= test session starts ============================= platform win32 -- Python 3.11.9, pytest-8.3.4, pluggy-1.7.0 -- C:\IT-labs\VNP\mtusi2026lab2\.venv\Scripts\python.exe cachedir: .pytest_cache rootdir: C:\IT-labs\VNP\mtusi2026lab2 plugins: anyio-4.15.1 collecting ... collected 28 items student-tests/test_auth.py::test_registration_requires_password PASSED [ 3%] student-tests/test_auth.py::test_short_password_is_400 PASSED [ 7%] student-tests/test_auth.py::test_extra_field_is_400 PASSED [ 10%] student-tests/test_auth.py::test_malformed_json_is_400 PASSED [ 14%] student-tests/test_auth.py::test_duplicate_username_is_409 PASSED [ 17%] student-tests/test_auth.py::test_registration_never_returns_password PASSED [ 21%] student-tests/test_auth.py::test_wrong_password_is_401_basic PASSED [ 25%] student-tests/test_auth.py::test_unknown_user_is_401_basic PASSED [ 28%] student-tests/test_auth.py::test_basic_on_business_endpoint_is_401_bearer PASSED [ 32%] student-tests/test_auth.py::test_missing_auth_is_401_bearer PASSED [ 35%] student-tests/test_auth.py::test_unknown_bearer_is_401 PASSED [ 39%] student-tests/test_auth.py::test_x_user_id_is_ignored PASSED [ 42%] student-tests/test_auth.py::test_logout_revokes_session PASSED [ 46%] student-tests/test_concurrency.py::test_100_concurrent_messages_are_not_lost PASSED [ 50%] student-tests/test_negative.py::test_foreign_chat_is_404 PASSED [ 53%] student-tests/test_negative.py::test_empty_message_is_400 PASSED [ 57%] student-tests/test_negative.py::test_oversized_message_is_400 PASSED [ 60%] student-tests/test_negative.py::test_limit_out_of_range_is_400 PASSED [ 64%] student-tests/test_negative.py::test_sender_id_in_body_is_rejected PASSED [ 67%] student-tests/test_negative.py::test_chat_without_caller_is_400 PASSED [ 71%] student-tests/test_negative.py::test_chat_with_unknown_member_is_400 PASSED [ 75%] student-tests/test_negative.py::test_chat_with_duplicate_members_is_400 PASSED [ 78%] student-tests/test_pagination.py::test_full_traversal_without_duplicates PASSED [ 82%] student-tests/test_pagination.py::test_cursor_from_other_chat_is_400 PASSED [ 85%] student-tests/test_pagination.py::test_garbage_cursor_is_400 PASSED [ 89%] student-tests/test_pagination.py::test_well_formed_cursor_with_wrong_types_is_400 PASSED [ 92%] student-tests/test_race.py::test_concurrent_duplicate_username_single_winner PASSED [ 96%] student-tests/test_race.py::test_failed_chat_creation_rolls_back PASSED [100%] ============================= 28 passed in 5.10s ==============================