Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How feasible would be write a plugin to transform a shared stage into a session-scoped fixture? #856

Open
pythrick opened this issue Mar 10, 2023 · 1 comment

Comments

@pythrick
Copy link

I just came up from the doc in usefixture session, and I really enjoyed the way it was designed. I just would like to have the same capabilities to transform/wrap a shared stage into a session-scoped fixture like that, because I would like to avoid writing http requests in Python code, since we're already using Tavern.

Would any of you have an idea on how to achieve that? Some guidance on what to look for? Great tool by the way, I'm learning a lot and enjoying it so much. Thanks for all your efford maintaining it.

image

@michaelboulton
Copy link
Member

This can't be done because stage execution is done after fixtures are actually evaluated, and all the code to check responses and format variables etc. in stages is fairly intricately tied in with the inner workings of all the code that runs the stages the way it is now.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants