An example pyramid app that connects to openstax/accounts
This is an example python pyramid app that connects to openstax/accounts.
./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
Copy testing.ini to local_testing.ini and change the values. This is only necessary if you intent to run the functional tests against a local instance of openstax/accounts.
cp testing.ini.example local_testing.ini
Download chrome driver:
If you don’t have chrome:
sudo apt-get install chromium-browser
Unzip chrome driver:
Add chrome driver to $PATH:
Make sure the $DISPLAY is set, for example:
or install xvfb
Run tests without openstax/accounts
xvfb-run ./bin/python setup.py test
or to run all tests (include the LOCAL_INI, which requires an openstax/accounts install):
LOCAL_INI=local_testing.ini xvfb-run ./bin/python setup.py test
Release history Release notifications | RSS feed
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.