mirror of
https://github.com/tiennm99/DocsGPT.git
synced 2026-10-04 12:13:05 +00:00
* feat: postgres tests * feat: mongo cutoff * feat: mongo cutoff * feat: adjust docs and compose files * fix: mini code mongo removals * fix: tests and k8s mongo stuff * feat: test fixes * fix: ruff * fix: vale * Potential fix for pull request finding 'CodeQL / Clear-text logging of sensitive information' Co-authored-by: Copilot Autofix powered by AI <62310815+github-advanced-security[bot]@users.noreply.github.com> * fix: mini suggestions * vale lint fix 2 * fix: codeql columns thing * fix: test mongo * fix: tests coverage * feat: better tests 4 * feat: more tests * feat: decent coverage * fix: ruff fixes * fix: remove mongo mock * feat: enhance workflow engine and API routes; add document retrieval and source handling * feat: e2e tests * fix: mcp, mongo and more * fix: mini codeql warning * fix: agent chunk view * fix: mini issues * fix: more pg fixes * feat: postgres prep on start * feat: qa tests * fix: mini improvements * fix: tests --------- Co-authored-by: Copilot Autofix powered by AI <62310815+github-advanced-security[bot]@users.noreply.github.com> Co-authored-by: Siddhant Rai <siddhant.rai.5686@gmail.com>
14 lines
526 B
Python
14 lines
526 B
Python
"""Fixtures for repository tests.
|
|
|
|
These tests exercise real SQL against a real Postgres schema. They used
|
|
to require a long-running Postgres (via ``POSTGRES_URI``) — that is no
|
|
longer the case. They now piggy-back on the ephemeral ``pg_conn`` fixture
|
|
defined in the root ``tests/conftest.py`` (backed by pytest-postgresql),
|
|
so CI and local runs don't need any external Postgres service.
|
|
|
|
Each test still runs inside a transaction that rolls back on teardown,
|
|
keeping tests hermetic.
|
|
"""
|
|
|
|
from __future__ import annotations
|