jeudi 30 juillet 2015

Unit test fixtures in Python?

I'm writing a library in Python which makes calls to a REST API, receives results in JSON, and returns Python class instances after transforming the results.

Is there a generally accepted way of including test fixtures (ie JSON files to test against) inside of the Python package and test namespace to load and test against in your test cases?

Aucun commentaire:

Enregistrer un commentaire