mardi 4 décembre 2018

Pytest and database cleanup before running tests

i am using Flask to build a web service and pytest for testing

i am using pytest fixtures to set up and tear down the test resources but i need to test a POST endpoint that will create some records in the database

How do we clean up these records ?

Aucun commentaire:

Enregistrer un commentaire