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

New View Tests #62

Closed Awinja-j closed 6 years ago

Awinja-j commented 6 years ago

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

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 healthtools/tests nosetests healthtools/tests/doctor.py nosetests healthtools/tests/nurse.py nosetests healthtools/tests/clinical_officer.py nosetests healthtools/tests/health_facilities.py nosetests healthtools/tests/nhif_inpatient.py nosetests healthtools/tests/nhif_outpatient.py nosetests healthtools/tests/nhif_outpatient_cs.py

Relevant Github Issue:

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

DavidLemayian commented 6 years ago

This is the exact same PR I closed a couple of days ago. Did you open this one by mistake? https://github.com/CodeForAfricaLabs/HealthTools.API/pull/59#issuecomment-333814243

Awinja-j commented 6 years ago

@DavidLemayian This is a new repo. i added new test cases that i feel make use of the iterators in the documents.

DavidLemayian commented 6 years ago

Hi @Awinja-Andela. Going to re-open this as there are many ways to skin a cat.

Awinja-j commented 6 years ago

@DavidLemayian please check on changes i have made.