Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Pull request Compare This branch is 1 commit ahead, 57 commits behind recurly:master.

Fetching latest commit…

Cannot retrieve the latest commit at this time

..
Failed to load latest commit information.
fixtures
README.md
__init__.py
recurlytests.py
test_js.py
test_recurly.py
test_resources.py

README.md

Recurly Python Client Tests

To run these tests in Python 2.7, use the unittest test runner:

$ python -m unittest discover -s tests

Under Python 2.6 or earlier, install the unittest2 distribution and use it instead:

$ pip install unittest2  # or easy_install
$ python -m unittest2 discover -s tests

The resource tests in test_resources.py will run using the HTTP fixtures in tests/fixtures. To run the tests against a live Recurly API endpoint, configure your Recurly test account and use its API key in the RECURLY_API_KEY environment variable:

$ RECURLY_API_KEY=1274...54e3 python -m unittest tests.test_resources

The live Recurly API endpoint can also be tested while validating the server certificate with the RECURLY_CA_CERTS_FILE environment variable, which should be a filename of concatenated certificate authority X.509 certificates:

$ RECURLY_API_KEY=1274...54e3 RECURLY_CA_CERTS_FILE=/etc/pki/tls/certs/ca-bundle.crt -m unittest tests.test_resources
Something went wrong with that request. Please try again.