CodeForAfrica / HealthTools.API

HealthTools API to retrieve, structure and return data being used by the health tools. Accessible at https://api.healthtools.codeforafrica.org/
https://api.healthtools.codeforafrica.org/
MIT License
19 stars 20 forks source link

View Tests #59

Closed Awinja-j closed 6 years ago

Awinja-j commented 6 years ago

This PR Introduces tests files for the available views which are:

-Doctors -Clinical officers -Nurses -Health Facilities -NHIF Inpatient -NHIF Outpatient -NHIF Outpatient Civil Servants

This task involved writing the tests and running the tests to ensure they run successfully.

This tests can be run by using the following commands:

nosetests doctors.py nosetests nurses.py nosetests clinical_officers.py nosetests health_facilities.py nosetests nhif_inpatient.py nosetests nhif_outpatient.py nosetests nhif_outpatient_cs.py

Relevant Github Issue:

https://github.com/CodeForAfricaLabs/HealthTools.API/issues/46

DavidLemayian commented 6 years ago

Hi @Awinja-Andela. Thanks for this. This approach to test do not take advantage of using iterators on the documents and therefore limits the platform as before. Please try again.