pytest icon indicating copy to clipboard operation
pytest copied to clipboard

move fixture finalizing to pytest_fixture_teardown hook

Open ShurikMen opened this issue 1 year ago • 10 comments

solution #12163

ShurikMen avatar Mar 26 '24 04:03 ShurikMen

I was just about to submit a PR with almost identical code changes when I discovered yours :) Changes are looking great, but I think you want to append the new-hook reference to the docs here

rplevka avatar Apr 10 '24 10:04 rplevka

that failing test does not seem to be related to the contributed code

rplevka avatar Apr 19 '24 15:04 rplevka

this looks good to me, how does this interact with pytest-asyncio?

For pytest-asyncio, everything should work without additional improvements

ShurikMen avatar Apr 23 '24 02:04 ShurikMen

Marking "Request changes" as per my comment on the issue: #12163 (comment)

@ShurikMen @rplevka please let me know in the issue if you have any specific use case for pytest_fixture_teardown instead of extending pytest_fixture_post_finalizer

I use it like this https://github.com/pytest-dev/pytest/issues/12163#issuecomment-2097359368

ShurikMen avatar Jul 19 '24 02:07 ShurikMen

@bluetech Can the community be of any help to help to push this PR forward? The discussion in #12163 seems to be waiting for your response.

ogajduse avatar Sep 27 '24 08:09 ogajduse

@RonnyPfannschmidt help, please? I think this has been stale for some time. We think the change makes perfect sense and we would really find it useful in our project. Thank you.

rplevka avatar Sep 30 '24 08:09 rplevka

im also waiting for a reply from @bluetech - i think the concerns mentioned need to be addressed

RonnyPfannschmidt avatar Oct 01 '24 06:10 RonnyPfannschmidt

@RonnyPfannschmidt Are there any concerns that should be addressed by the community? If so, could you please let us know what are these? I believe that concerns @bluetech had were answered in #12163. It is already 5 months since this has been open. I would like to know whether there is any chance merging it or we should be looking into a completely different approach or a place to put the logic in.

ogajduse avatar Oct 03 '24 09:10 ogajduse