Skip to content

Allow @around decorator to yield arguments to test method #41

@Fluxx

Description

@Fluxx

It would be great to be able to do this:

@around
def build_db(self)
    db = db.connect()
    yield db
    db.close()

def test_foo(self, db):
    assert db.query('SELECT 1')

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions