cancel
Showing results for 
Search instead for 
Did you mean: 

unit_testing a python API

Occasional Contributor

unit_testing a python API

I've written an API using python and would like to add unit tests to the code which I've written.

 

The only way to fully test the functionality would be to CRUD the data to your server.  I'm loathe to use a client's live dataset, so is there a testbed account to which data can be sent/received when tests are running?   My proposal would involving sending tens (rather than hundreds) of requests per test and naturally it'd be ok for there to be a data throttle in place, say a total of 500 calls per day.   Any emails sent would be to dummy email addresses only.

 

Could such a test-bed account be made available? 

1 REPLY 1
Highlighted
Moderator

Re: unit_testing a python API

Hi Gabrielle,

 

Unfortunately we do not have any testbed or sandbox accounts available for developers to test against. However, you can at any time sign up for a trial account, populate it with data, get an access token for that account, and then perform your testing. 

 

Please let me know if this is helpful, or if you have any questions. See API Keys topic for more information on how to get an Oauth access token using your API key. 

Rich Marcucella
Sr. Technical Writer, Content Developer
Web Services Team
http://developer.constantcontact.com