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.
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
You can post a new message in the Community or find us on Twitter Mon-Fri 8am-8pm ET, Sat 10am-8pm ET, & Sun 10am-6pm ET. We've got real people waiting to help you out. Click below to start a conversation!