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
gets fixture Mock uses return statement with request.addfinalizer() instead of yield. The former does not work correctly - yielded fixture is not available for tests!
The text was updated successfully, but these errors were encountered:
kniklas
changed the title
used request.addfinalizer() instead of preferred yield
How to use yield in fixture mock instead of request.addfinalizer()
Apr 15, 2021
gets fixture Mock uses
return
statement withrequest.addfinalizer()
instead ofyield
. The former does not work correctly - yielded fixture is not available for tests!See: e866f43 and line of code: e866f43#diff-03b04da21521a2d564314ed339e261eb06b17d7f59d4b3985485ab9dfdfc8476R28
The text was updated successfully, but these errors were encountered: