Skip to content
This repository has been archived by the owner on Jan 20, 2024. It is now read-only.

Add some basic unit tests #5

Open
btimby opened this issue Jun 20, 2013 · 0 comments
Open

Add some basic unit tests #5

btimby opened this issue Jun 20, 2013 · 0 comments

Comments

@btimby
Copy link

btimby commented Jun 20, 2013

I just added some unit tests to another API client I use in my project. I used an excellent HTTP server mock utility called HTTPretty. It makes it easy to test an HTTP client against a fake server. You can return any arbitrary fake HTTP response and make assertions against the client's handling of those responses.

https://github.com/gabrielfalcao/HTTPretty

These tests were written only to test the basic functionality I needed (and some changes I made to the library, so they are not a good example of full tests, but a good starting point).

https://github.com/btimby/contactology/blob/master/tests.py

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

1 participant