You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have some tests for figures which use widgets to update the figure. It would be really helpful if I could yield from the test with a figure and then update it and yield from it again or return the figure the final time.
(I am not 100% sure if that's possible with pytest)
The text was updated successfully, but these errors were encountered:
I'm quite sure pytest doesn't support yielding inside a test function, however, this workaround seems the easiest solution. It dynamically creates test methods in the test class. You just give it a figure generator object and it the number of times it yields. We could add it to the sphinx website as an example?
I have some tests for figures which use widgets to update the figure. It would be really helpful if I could yield from the test with a figure and then update it and yield from it again or return the figure the final time.
(I am not 100% sure if that's possible with pytest)
The text was updated successfully, but these errors were encountered: