An example pyramid app that connects to openstax/accounts
Project description
This is an example python pyramid app that connects to openstax/accounts.
INSTALL
Install virtualenv
virtualenv .
./bin/python setup.py install
Set up openstax/services (See karenc/openstax-setup)
Register this app with openstax/accounts
Copy development.ini.example to development.ini and change the values
Start the app by ./bin/pserve development.ini
TESTS
Copy testing.ini.example to testing.ini and change the values
Download chrome driver (and chrome if you don’t have it): wget 'http://chromedriver.storage.googleapis.com/2.9/chromedriver_linux64.zip'
Unzip chrome driver: unzip chromedriver_linux64.zip
Add chrome driver to $PATH: export PATH=$PATH:.
Make sure the $DISPLAY is set, for example: export DISPLAY=:0 or install xvfb
./bin/python setup.py test or xvfb-run ./bin/python setup.py test
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.