mardi 26 janvier 2021

How do I test Python with test files and expected output files

I have a Python script.
A particular method takes an text file and may create 0-3 files.
I have sample text files, and the expected output files for each.

How would I set up this script for testing?
I use unittest for testing functions that do not have file i/o currently.

Aucun commentaire:

Enregistrer un commentaire