kniklas/get-fx

How to use yield in fixture mock instead of request.addfinalizer()

kniklas opened this issue · 1 comments

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!

See: e866f43 and line of code: e866f43#diff-03b04da21521a2d564314ed339e261eb06b17d7f59d4b3985485ab9dfdfc8476R28

Research on pytest yield / finalizers - if/how it is supported.