IN-CORE / pyincore

pyIncore is a component of IN-CORE. It is a python package consisting of two primary components: 1) a set of service classes to interact with the IN-CORE web services, and 2) IN-CORE analyses . The pyIncore allows users to apply various hazards to infrastructure in selected areas, propagating the effect of physical infrastructure damage and loss of functionality to social and economic impacts.
Mozilla Public License 2.0
25 stars 7 forks source link

Plan refactoring of pytests #46

Open diegoac2 opened 2 years ago

diegoac2 commented 2 years ago

We need to add pytests for analyses, figure out what we need to assert generally and individually and make individual tasks for them. Also, we should not test against the services, we should mock the responses.

Also, we should make a document about test-driven development so that anyone who wants to contribute to pyIncore can follow it.

nunezco2 commented 2 years ago

This refers more to functional rather than unit tests. Verifying that the output conforms to what is expected from the analysis.