I'd like something that's almost exactly like fixtures, except that I want to have _setUp and any cleanups I add return Deferreds.
I also therefore want to be able to useFixture on those asynchronous fixtures.
Left to my own devices, I think I would achieve this by factoring out the addCleanup logic that's already in Twisted's testing framework, and then create a parallel implementation of fixtures, along with an adapter that takes regular synchronous fixtures and makes them return Deferreds.
However, that's not optimal. I'd like something that works for various asynchronous abstractions, not just Twisted, and I'd like to have some means of avoiding interface skew.
(Was going to file on Launchpad but lost my 2FA token)
I'd like something that's almost exactly like fixtures, except that I want to have
_setUpand any cleanups I add return Deferreds.I also therefore want to be able to
useFixtureon those asynchronous fixtures.Left to my own devices, I think I would achieve this by factoring out the
addCleanuplogic that's already in Twisted's testing framework, and then create a parallel implementation of fixtures, along with an adapter that takes regular synchronous fixtures and makes them return Deferreds.However, that's not optimal. I'd like something that works for various asynchronous abstractions, not just Twisted, and I'd like to have some means of avoiding interface skew.
(Was going to file on Launchpad but lost my 2FA token)