I'd like to set row_factory=psycopg.rows.dict_row for the connection returned by the pytest fixture.
Current workaround:
@pytest.fixture(autouse=True)
def set_default_row_factory(client: psycopg.Connection):
client.row_factory = psycopg.rows.dict_row
I'd like to set
row_factory=psycopg.rows.dict_rowfor the connection returned by the pytest fixture.Current workaround: