============================= test session starts ==============================
platform linux -- Python 3.11.7, pytest-8.0.0, pluggy-1.3.0
rootdir: /home/user/project
configfile: pyproject.toml
collected 12 items

tests/test_auth.py::test_login_success PASSED
tests/test_auth.py::test_login_failure PASSED
tests/test_auth.py::test_logout PASSED
tests/test_api.py::test_get_users PASSED
tests/test_api.py::test_create_user FAILED
tests/test_api.py::test_delete_user PASSED
tests/test_api.py::test_update_user PASSED
tests/test_models.py::test_user_model PASSED
tests/test_models.py::test_post_model FAILED
tests/test_models.py::test_comment_model PASSED
tests/test_utils.py::test_hash_password PASSED
tests/test_utils.py::test_validate_email PASSED

=================================== FAILURES ===================================
FAILED tests/test_api.py::test_create_user - AssertionError: assert 201 == 200
FAILED tests/test_models.py::test_post_model - ValueError: missing required field 'title'
=========================== short test summary info ============================
FAILED tests/test_api.py::test_create_user - AssertionError: assert 201 == 200
FAILED tests/test_models.py::test_post_model - ValueError: missing required field 'title'
========================= 2 failed, 10 passed in 0.83s ========================
