-
Notifications
You must be signed in to change notification settings - Fork 110
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 to switch to pytest? #6225
Comments
I am afraid I agree -- sprint would be nice, but since use of our decorators is so much intertwined through our tests, it might be even "difficult to start" in a sprint fashion. I think what would be worth for some singular developer to approach our decorators and either make them into pytest fixtures, but another approach (more lightweight but not universal) IIRC was just to keep them, and to make args into kwargs in the tests, see e.g. use of @jwodder , since you have extensive knowledge of py.test , could you please give an initial shot to e.g.
? I think based on the success/lessons learned from this "small" exercise we might then work out a more informed plan for migration? (and that work shouldn't conflict with anything ongoing, as if we e.g. started to convert all the tests) |
|
My 2ct: I think it should be off master for the test ballon, and if successful implemented immediately following a release (where there is minimal diff between the two). It will cause major disruption anyways. Not even thinking about the old PRs that are dangling here.... |
I'm in the process of replacing the use of Lines 259 to 260 in 3bfdaab
In the current code on master, setting |
@yarikoptic @mih I would like some input on what the desired syntax for
|
well, it might indeed be some undocumented feature that pytest tests are still python functions ;) |
I could be wrong but I believe we might have some cases (largely of
this sounds seductive albeit "dangerous" since we hoped that for the "first stage" we better minimize the diff (keep/provide all the |
If we want to keep the uses of Note that there exists a nose2pytest script for converting
No. The most I've done with signatures has been this manipulation in fscacher and a library for summarizing the arguments a function takes. |
@yarikoptic @mih I still need an answer to this question about how to update |
👍
I would have first tried along the selected choice I gave in #6225 (comment) :
unless you run into a show stopper -- I think this would be the least intrusive way |
Minimalistic (adapters, no asserts changes etc) conversion from nose to pytest
I think we have switched to |
We had mixed interest in the discussion about this #4090, but with #6211 it is no abundantly clear that this is no longer an academic exercise.
I am quite confident that such a switch is no side-hustle for a single dev. In all likelihood we have to organize a sprint with a clear objective and approach, and then make it happen in one go.
The only real attempt to do anything about this was #4232
The text was updated successfully, but these errors were encountered: