Re: RFC: adding pytest as a supported test framework
Daniele Varrazzo <daniele.varrazzo@gmail.com>
From: Daniele Varrazzo <daniele.varrazzo@gmail.com>
To: Daniel Gustafsson <daniel@yesql.se>
Cc: Andres Freund <andres@anarazel.de>,
Jacob Champion <jacob.champion@enterprisedb.com>, PostgreSQL Hackers <pgsql-hackers@postgresql.org>
Date: 2024-06-12T17:38:54Z
Lists: pgsql-hackers
On Wed, 12 Jun 2024 at 19:30, Daniel Gustafsson <daniel@yesql.se> wrote: > I might be missing something obvious, but if we use a third-party libpq driver > in the testsuite doesn't that imply that a patch adding net new functionality > to libpq also need to add it to the driver in order to write the tests? I'm > thinking about the SCRAM situation a few years back when drivers weren't up to > date. As Jelte pointed out, new libpq functions can be tested via CFFI. I posted a practical example in a link upthread (pure Python Psycopg is entirely implemented on FFI). -- Daniele