Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Loading…

Generate tests from list of contexts #106

Open
dag opened this Issue · 1 comment

1 participant

@dag
Owner
dag commented

Similar to #105 but generative. Each context represents a call of each test function in the collection rather than nested contexts.

Thanks ronny.

@dag
Owner

The #105 equivalent would thus be something like,

db = Tests(foreach=[memorydb, filedb])

@db.test
def dbtest(conn):
    assert some_condition(using=conn)

The benefit becomes more obvious when the list of contexts is dynamic or large.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.