Re: RFC: adding pytest as a supported test framework

Поиск
Список
Период
Сортировка
От Daniele Varrazzo
Тема Re: RFC: adding pytest as a supported test framework
Дата
Msg-id CA+mi_8Y=yKbPXDASxq0aYVMRcxp2hZ6ryAGhb26ewEDjw-0m+w@mail.gmail.com
обсуждение исходный текст
Ответ на Re: RFC: adding pytest as a supported test framework  (Daniel Gustafsson <daniel@yesql.se>)
Список 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 по дате отправления:

Предыдущее
От: Daniel Gustafsson
Дата:
Сообщение: Re: RFC: adding pytest as a supported test framework
Следующее
От: Tom Lane
Дата:
Сообщение: Re: Improve the granularity of PQsocketPoll's timeout parameter?