File: fix_pool.py

package info (click to toggle)
psycopg3 3.3.2-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 3,836 kB
  • sloc: python: 46,657; sh: 403; ansic: 149; makefile: 73
file content (12 lines) | stat: -rw-r--r-- 348 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
import pytest


def pytest_configure(config):
    config.addinivalue_line("markers", "pool: test related to the psycopg_pool package")


def pytest_collection_modifyitems(items):
    # Add the pool markers to all the tests in the pool package
    for item in items:
        if "/pool/" in item.nodeid:
            item.add_marker(pytest.mark.pool)