date: 2026-11-05T23:03:07.667186+00:00 commit: 5c561eac26be15d9dca3d9f282294a351f6043e5; tests: working tree $ .venv/bin/pytest -q --tb=short student-tests/unit/test_nul_inputs.py FFFFFFFFFFFFFFFFF...FF [100%] =================================== FAILURES =================================== ____________________ test_basic_rejects_nul_username[\x00] _____________________ student-tests/unit/test_nul_inputs.py:34: in test_basic_rejects_nul_username assert basic_credentials(f"Basic {raw}") is None E AssertionError: assert ('\x00', 'synthetic-password') is None E + where ('\x00', 'synthetic-password') = basic_credentials('Basic ADpzeW50aGV0aWMtcGFzc3dvcmQ=') ___________________ test_basic_rejects_nul_username[\x00abc] ___________________ student-tests/unit/test_nul_inputs.py:34: in test_basic_rejects_nul_username assert basic_credentials(f"Basic {raw}") is None E AssertionError: assert ('\x00abc', 'synthetic-password') is None E + where ('\x00abc', 'synthetic-password') = basic_credentials('Basic AGFiYzpzeW50aGV0aWMtcGFzc3dvcmQ=') _________________ test_basic_rejects_nul_username[abc\x00def] __________________ student-tests/unit/test_nul_inputs.py:34: in test_basic_rejects_nul_username assert basic_credentials(f"Basic {raw}") is None E AssertionError: assert ('abc\x00def', 'synthetic-password') is None E + where ('abc\x00def', 'synthetic-password') = basic_credentials('Basic YWJjAGRlZjpzeW50aGV0aWMtcGFzc3dvcmQ=') ___________________ test_basic_rejects_nul_username[abc\x00] ___________________ student-tests/unit/test_nul_inputs.py:34: in test_basic_rejects_nul_username assert basic_credentials(f"Basic {raw}") is None E AssertionError: assert ('abc\x00', 'synthetic-password') is None E + where ('abc\x00', 'synthetic-password') = basic_credentials('Basic YWJjADpzeW50aGV0aWMtcGFzc3dvcmQ=') ____________ test_nul_username_is_rejected_before_credential_lookup ____________ student-tests/unit/test_nul_inputs.py:50: in test_nul_username_is_rejected_before_credential_lookup verify.assert_not_awaited() ../../../../../.local/share/uv/python/cpython-3.14.5-macos-aarch64-none/lib/python3.14/unittest/mock.py:2471: in assert_not_awaited raise AssertionError(msg) E AssertionError: Expected mock to not have been awaited. Awaited 1 times. ________ test_text_values_reject_nul[DisplayName-InvalidUserData-\x00] _________ student-tests/unit/test_nul_inputs.py:62: in test_text_values_reject_nul with pytest.raises(error): ^^^^^^^^^^^^^^^^^^^^ E Failed: DID NOT RAISE InvalidUserData _______ test_text_values_reject_nul[DisplayName-InvalidUserData-\x00abc] _______ student-tests/unit/test_nul_inputs.py:62: in test_text_values_reject_nul with pytest.raises(error): ^^^^^^^^^^^^^^^^^^^^ E Failed: DID NOT RAISE InvalidUserData _____ test_text_values_reject_nul[DisplayName-InvalidUserData-abc\x00def] ______ student-tests/unit/test_nul_inputs.py:62: in test_text_values_reject_nul with pytest.raises(error): ^^^^^^^^^^^^^^^^^^^^ E Failed: DID NOT RAISE InvalidUserData _______ test_text_values_reject_nul[DisplayName-InvalidUserData-abc\x00] _______ student-tests/unit/test_nul_inputs.py:62: in test_text_values_reject_nul with pytest.raises(error): ^^^^^^^^^^^^^^^^^^^^ E Failed: DID NOT RAISE InvalidUserData _________ test_text_values_reject_nul[ChatTitle-InvalidChatData-\x00] __________ student-tests/unit/test_nul_inputs.py:62: in test_text_values_reject_nul with pytest.raises(error): ^^^^^^^^^^^^^^^^^^^^ E Failed: DID NOT RAISE InvalidChatData ________ test_text_values_reject_nul[ChatTitle-InvalidChatData-\x00abc] ________ student-tests/unit/test_nul_inputs.py:62: in test_text_values_reject_nul with pytest.raises(error): ^^^^^^^^^^^^^^^^^^^^ E Failed: DID NOT RAISE InvalidChatData ______ test_text_values_reject_nul[ChatTitle-InvalidChatData-abc\x00def] _______ student-tests/unit/test_nul_inputs.py:62: in test_text_values_reject_nul with pytest.raises(error): ^^^^^^^^^^^^^^^^^^^^ E Failed: DID NOT RAISE InvalidChatData ________ test_text_values_reject_nul[ChatTitle-InvalidChatData-abc\x00] ________ student-tests/unit/test_nul_inputs.py:62: in test_text_values_reject_nul with pytest.raises(error): ^^^^^^^^^^^^^^^^^^^^ E Failed: DID NOT RAISE InvalidChatData _______ test_text_values_reject_nul[MessageText-InvalidMessageText-\x00] _______ student-tests/unit/test_nul_inputs.py:62: in test_text_values_reject_nul with pytest.raises(error): ^^^^^^^^^^^^^^^^^^^^ E Failed: DID NOT RAISE InvalidMessageText _____ test_text_values_reject_nul[MessageText-InvalidMessageText-\x00abc] ______ student-tests/unit/test_nul_inputs.py:62: in test_text_values_reject_nul with pytest.raises(error): ^^^^^^^^^^^^^^^^^^^^ E Failed: DID NOT RAISE InvalidMessageText ____ test_text_values_reject_nul[MessageText-InvalidMessageText-abc\x00def] ____ student-tests/unit/test_nul_inputs.py:62: in test_text_values_reject_nul with pytest.raises(error): ^^^^^^^^^^^^^^^^^^^^ E Failed: DID NOT RAISE InvalidMessageText _____ test_text_values_reject_nul[MessageText-InvalidMessageText-abc\x00] ______ student-tests/unit/test_nul_inputs.py:62: in test_text_values_reject_nul with pytest.raises(error): ^^^^^^^^^^^^^^^^^^^^ E Failed: DID NOT RAISE InvalidMessageText ____________ test_nul_message_checks_access_without_writing[False] _____________ student-tests/unit/test_nul_inputs.py:86: in test_nul_message_checks_access_without_writing await handler(command) src/messenger/messaging/application/handlers.py:62: in __call__ receipt = await self._log.post(draft, command.key, command.fingerprint, now - self._ttl) ^^^^^^^^^^^^^^^ E TypeError: unsupported operand type(s) for -: 'Mock' and 'datetime.timedelta' _____________ test_nul_message_checks_access_without_writing[True] _____________ student-tests/unit/test_nul_inputs.py:86: in test_nul_message_checks_access_without_writing await handler(command) src/messenger/messaging/application/handlers.py:62: in __call__ receipt = await self._log.post(draft, command.key, command.fingerprint, now - self._ttl) ^^^^^^^^^^^^^^^ E TypeError: unsupported operand type(s) for -: 'Mock' and 'datetime.timedelta' =========================== short test summary info ============================ FAILED student-tests/unit/test_nul_inputs.py::test_basic_rejects_nul_username[\x00] FAILED student-tests/unit/test_nul_inputs.py::test_basic_rejects_nul_username[\x00abc] FAILED student-tests/unit/test_nul_inputs.py::test_basic_rejects_nul_username[abc\x00def] FAILED student-tests/unit/test_nul_inputs.py::test_basic_rejects_nul_username[abc\x00] FAILED student-tests/unit/test_nul_inputs.py::test_nul_username_is_rejected_before_credential_lookup FAILED student-tests/unit/test_nul_inputs.py::test_text_values_reject_nul[DisplayName-InvalidUserData-\x00] FAILED student-tests/unit/test_nul_inputs.py::test_text_values_reject_nul[DisplayName-InvalidUserData-\x00abc] FAILED student-tests/unit/test_nul_inputs.py::test_text_values_reject_nul[DisplayName-InvalidUserData-abc\x00def] FAILED student-tests/unit/test_nul_inputs.py::test_text_values_reject_nul[DisplayName-InvalidUserData-abc\x00] FAILED student-tests/unit/test_nul_inputs.py::test_text_values_reject_nul[ChatTitle-InvalidChatData-\x00] FAILED student-tests/unit/test_nul_inputs.py::test_text_values_reject_nul[ChatTitle-InvalidChatData-\x00abc] FAILED student-tests/unit/test_nul_inputs.py::test_text_values_reject_nul[ChatTitle-InvalidChatData-abc\x00def] FAILED student-tests/unit/test_nul_inputs.py::test_text_values_reject_nul[ChatTitle-InvalidChatData-abc\x00] FAILED student-tests/unit/test_nul_inputs.py::test_text_values_reject_nul[MessageText-InvalidMessageText-\x00] FAILED student-tests/unit/test_nul_inputs.py::test_text_values_reject_nul[MessageText-InvalidMessageText-\x00abc] FAILED student-tests/unit/test_nul_inputs.py::test_text_values_reject_nul[MessageText-InvalidMessageText-abc\x00def] FAILED student-tests/unit/test_nul_inputs.py::test_text_values_reject_nul[MessageText-InvalidMessageText-abc\x00] FAILED student-tests/unit/test_nul_inputs.py::test_nul_message_checks_access_without_writing[False] FAILED student-tests/unit/test_nul_inputs.py::test_nul_message_checks_access_without_writing[True] 19 failed, 3 passed in 0.08s exit: 1