Re: [pytest-dev] Looking for recommendation

2023-02-06 Thread Steve
Hello Bruno, Thanks for the insightful reply. That's a neat trick -- depending on pytest's class name collection approach to create a hierarchy for tests. This approach addresses both, the sharing of tests/fixtures as well as having custom tests/fixtures. It might also be possible to be

Re: [pytest-dev] Looking for recommendation

2023-02-06 Thread Bruno Oliveira
Hi Steve, One technique which I have used for this scenario is to declare a base class containing the "common" tests. The class should not have the "Test" prefix/suffix as to not be collected by pytest. Then on the sibling projects, you create a Test subclass from the base class, which in turns

[pytest-dev] Looking for recommendation

2023-02-06 Thread Steve
Hello, I'm look for some advice regarding restructuring tests/test layout for an existing project using pytest. Forgive me if this isn't the correct forum for this sort of questions. I'm sending this here because I felt this doesn't really qualify as a bug/issue to be raise on github. Here's