Closed acutesoftware closed 9 years ago
Decided not to do this - start the server yourself when testing, and keep existing try, except for travis-ci as it is too risky to stop the server once launched - later look into mock, but for now when testing the api I will actually start the api myself, otherwise - doesn't matter
In AIKIF/tests/test_api.py the local API should be started, sleep for a second then run the tests without any try catches (that was done as a fudge to get travis-ci passing.
See example of unit testing a webserver at https://github.com/web2py/web2py/blob/master/gluon/tests/test_web.py