vendredi 9 juin 2017

Django Unittesting: How to create temporary test only view?

I'm writing a django app which includes a utility to extract information from a html table on some url and downloads some files accordingly (assume the function is named extract_table_do_x). To test this utility I want to create a temporary page with a mock html table and run extract_table_do_x on it, but I don't want this page to be part of the main app. How to do so?

Aucun commentaire:

Enregistrer un commentaire