Testing¶
This project uses the most fabulous testing tools for Python:
Run tests¶
Run tests simply by:
python setup.py test
or (if you have installed dependencies):
python -m pytest [options]
pytest [options]
Betamax cassettes¶
Betamax cassettes are stored in tests/fixtures/cassettes
directory. If
you are not connected to the internet, Twitter API is not working and/or
you don’t have own API credentials you will use (replay) them in order to
test API client.
If you want to run your own cassettes, you need to setup system variables
API_KEY
API_SECRET
Your test command then might look like:
API_KEY=<YOUR_API_KEY> API_SECRET=<YOUR_API_SECRET> \
python setup.py test
For more information, enjoy reading Betamax documentation.