PR Title Check / check-title (pull_request) Successful in 7s
Code Quality Pipeline / code-quality (pull_request) Failing after 19s
Test Python Package / unit-tests (pull_request) Successful in 47s
Test Python Package / integration-tests (pull_request) Successful in 44s
Test Python Package / coverage-report (pull_request) Successful in 11s
Introduce PostgresAdapter for dict-based row CRUD via psycopg3, including config, lazy exports, unit/integration tests with testcontainers, and an example UserTableRepository. Co-authored-by: Cursor <cursoragent@cursor.com>
18 lines
481 B
Python
18 lines
481 B
Python
"""Shared test configuration constants."""
|
|
|
|
from python_repositories.config import MinioConfig, PostgresConfig, RedisConfig
|
|
|
|
TEST_REDIS_CONFIG = RedisConfig(uri="redis://localhost:6379")
|
|
TEST_MINIO_CONFIG = MinioConfig(
|
|
endpoint="localhost:9000",
|
|
access_key="minioadmin",
|
|
secret_key="minioadmin",
|
|
bucket="test-bucket",
|
|
secure=False,
|
|
)
|
|
TEST_POSTGRES_CONFIG = PostgresConfig(
|
|
uri="postgresql://localhost/mydb",
|
|
table="test_items",
|
|
primary_key="id",
|
|
)
|