I'm maintaining a codebase (CFFI bindings for a 3rd-party C library), and I'm interested in adding tests to my bindings.
My code is organized into 2 modules ("pqc.kem" and "pqc.sign"), each of which has around fifteen sub-modules in it. Within each module, every sub-module has exactly the same interface, the same set of functions, which I'll need to run "the same" test suite against.
This is definitely past the quantity threshold where "DRY" becomes good, but I'm wondering what the best practices are for this when it comes to test suites. I had a bit of trouble finding anything in either the Hypothesis or pytest documentation about "interfaces".
Thanks,
--
James E. A.