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 test

in the root directory. The tests require pytest (

In order to check all supported Python versions, I use tox (

Adding new tests

When adding new tests, you may need to pass your credentials to the API. Simply add a file 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!