Configure psycopg timeout for faster tests.
()
| 14 | |
| 15 | @pytest.fixture(scope="session", autouse=True) |
| 16 | def configure_psycopg(): |
| 17 | """Configure psycopg timeout for faster tests.""" |
| 18 | try: |
| 19 | from tortoise.backends.psycopg import PsycopgClient |
| 20 | |
| 21 | PsycopgClient.default_timeout = float(os.environ.get("TORTOISE_POSTGRES_TIMEOUT", "15")) |
| 22 | except ImportError: |
| 23 | pass |
| 24 | |
| 25 | |
| 26 | # ============================================================================ |
nothing calls this directly
no test coverage detected
searching dependent graphs…