Re: RFC: adding pytest as a supported test framework - Mailing list pgsql-hackers

From Daniele Varrazzo
Subject Re: RFC: adding pytest as a supported test framework
Date
Msg-id CA+mi_8Y=yKbPXDASxq0aYVMRcxp2hZ6ryAGhb26ewEDjw-0m+w@mail.gmail.com
Whole thread Raw
In response to Re: RFC: adding pytest as a supported test framework  (Daniel Gustafsson <daniel@yesql.se>)
List 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



pgsql-hackers by date:

Previous
From: Daniel Gustafsson
Date:
Subject: Re: RFC: adding pytest as a supported test framework
Next
From: Tom Lane
Date:
Subject: Re: Improve the granularity of PQsocketPoll's timeout parameter?