1. Sebastian Rahlf
  2. python-amazon-product-api


Clone wiki

python-amazon-product-api / RunningTheTests

Running the Tests

There are a number of tests setup to check for inter-version and inter-locale consistencies. The simplest way of running them is to run

python setup.py test

in the root directory. The tests require pytest (http://pytest.org/).

In order to check all supported Python versions, I use tox (http://codespeak.net/tox/).

Adding new tests

When adding new tests, you may need to pass your credentials to the API. Simply add a file config.py with the following content

AWS_KEY = '...'
SECRET_KEY = '...'

and make sure it can be imported by the test suite. Your credentials will not be stored in any files!