Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Generate tests from list of contexts #106

Open
dag opened this issue May 9, 2011 · 1 comment
Open

Generate tests from list of contexts #106

dag opened this issue May 9, 2011 · 1 comment
Labels
Milestone

Comments

@dag
Copy link
Owner

dag commented May 9, 2011

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

Thanks ronny.

@dag
Copy link
Owner Author

dag commented May 10, 2011

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
Labels
Projects
None yet
Development

No branches or pull requests

1 participant