acutesoftware / AIKIF

Artificial Intelligence Knowledge Information Framework
GNU General Public License v3.0
54 stars 13 forks source link

Test API should start up server locally #28

Closed acutesoftware closed 9 years ago

acutesoftware commented 9 years ago

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

acutesoftware commented 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