46 lines
3.3 KiB
Plaintext
46 lines
3.3 KiB
Plaintext
# Дата (UTC): 2026-10-23 10:17:35
|
|
# Commit: 65003b6
|
|
# Команда: docker compose --env-file .env --profile test run --rm tests python -m pytest -v --no-header -p no:cacheprovider student-tests/test_database.py student-tests/test_db_failure.py student-tests/test_transactions.py student-tests/test_duplicate_username.py
|
|
# ---------------------------------------- вывод ----------------------------------------
|
|
============================= test session starts ==============================
|
|
collecting ... collected 19 items
|
|
|
|
student-tests/test_database.py::test_password_is_stored_as_scrypt_hash_not_plaintext PASSED [ 5%]
|
|
student-tests/test_database.py::test_same_password_gives_different_hashes PASSED [ 10%]
|
|
student-tests/test_database.py::test_session_table_keeps_token_hash_not_token PASSED [ 15%]
|
|
student-tests/test_database.py::test_message_is_really_in_the_database PASSED [ 21%]
|
|
student-tests/test_database.py::test_migrations_can_run_again_without_duplicating_anything PASSED [ 26%]
|
|
student-tests/test_database.py::test_expected_tables_and_indexes_exist PASSED [ 31%]
|
|
student-tests/test_database.py::test_primary_and_foreign_keys_are_declared PASSED [ 36%]
|
|
student-tests/test_database.py::test_database_itself_rejects_bad_rows PASSED [ 42%]
|
|
student-tests/test_database.py::test_chat_creation_is_atomic PASSED [ 47%]
|
|
student-tests/test_database.py::test_successful_chat_has_all_members_in_database PASSED [ 52%]
|
|
student-tests/test_db_failure.py::test_database_down_gives_503_and_never_trusts_anyone PASSED [ 57%]
|
|
student-tests/test_db_failure.py::test_database_down_with_cache_up_still_needs_database_for_data PASSED [ 63%]
|
|
student-tests/test_transactions.py::test_failure_after_chat_insert_rolls_back_whole_operation PASSED [ 68%]
|
|
student-tests/test_transactions.py::test_pool_is_bounded_by_settings PASSED [ 73%]
|
|
student-tests/test_transactions.py::test_exhausted_pool_gives_fast_503 PASSED [ 78%]
|
|
student-tests/test_duplicate_username.py::test_second_registration_with_same_username_is_409 PASSED [ 84%]
|
|
student-tests/test_duplicate_username.py::test_duplicate_does_not_replace_original_user PASSED [ 89%]
|
|
student-tests/test_duplicate_username.py::test_username_is_case_sensitive_lowercase_only PASSED [ 94%]
|
|
student-tests/test_duplicate_username.py::test_parallel_registration_of_same_username_creates_exactly_one PASSED [100%]
|
|
|
|
=============================== warnings summary ===============================
|
|
../usr/local/lib/python3.12/site-packages/fastapi/testclient.py:1
|
|
/usr/local/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
|
|
======================== 19 passed, 1 warning in 3.91s =========================
|
|
Container messenger-redis Running
|
|
Container messenger-db Running
|
|
Container messenger-db Waiting
|
|
Container messenger-redis Waiting
|
|
Container messenger-db Healthy
|
|
Container messenger-redis Healthy
|
|
Container mtusi-messenger-tests-run-28da14e927b9 Creating
|
|
Container mtusi-messenger-tests-run-28da14e927b9 Created
|
|
# ---------------------------------------------------------------------------------------
|
|
# Код возврата: 0
|
|
# Время выполнения: 7.04 с
|