Skip to content

Add a teardown function arg to the pedantic mode. #270

Open
@jenstroeger

Description

Thank you for this interesting pytest plugin 👍🏼

In my case I need to benchmark a function which inserts rows into a db. However, it can’t run more than once because entering the same rows again fails. At the moment I’m using pedantic with rounds=1 and iterations=1 (as per issue #9).

The pedantic mode has a setup argument and I think an equivalent teardown function would be useful — I’d just delete all rows such that benchmark could run the function again.

Cheers!

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions