Pull requests welcome.
This is a Python 3 application. It has not been tested against any version of Python 2.
brew install python3This is done through pip and virtualenv. We recommend using VirtualEnvWrapper.
Setting up a Virtualenv for python3
mkvirtualenv -p /usr/local/bin/python3 notifications-python-clientInstall the dependencies
pip3 install -r requirements_for_test.txtThe ./scripts/run_tests.py script will run all the tests.
py.test is used for testing.
Running the script will also check for conformance with
pep8.
Additionally code coverage is checked via pytest-cov.
The ./scripts/run_integration_tests.py script will run the integration tests.
The integration tests will test the contract of the response to all the api calls,
ensuring the latest version of notifications-api do not break the contract of the notifications-python-client.
Use this to test the client without having to create an application.
PYTHONPATH=. python /utils/make_api_call.py <base_api_url> <api_key> [fetch|create]
This will use the API referred to in the base_api_url argument to send a text message.