Files
DocsGPT/tests/api/user/test_utils.py
2026-04-15 11:08:40 +01:00

19 lines
732 B
Python

"""Tests for application/api/user/utils.py.
The old suite exercised helpers (``validate_object_id``,
``check_resource_ownership``, ``serialize_object_id``, ``safe_db_operation``,
``validate_enum``, ``extract_sort_params``, ``validate_pagination``) that
carried bson / pymongo imports and have been removed from the module
post Mongo -> Postgres cutover. Thin tests over the surviving helpers
(``get_user_id``, ``require_auth``, ``success_response``, ``error_response``,
``require_fields``) will be reinstated once the response-shape changes (e.g.
``error`` vs ``message`` key) settle.
"""
import pytest
@pytest.mark.skip(reason="needs PG fixture rewrite - tracked separately")
def test_user_utils_pending_pg_rewrite():
pass