Skip to content

Asynchronous fixtures #18

@jml

Description

@jml

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)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions