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 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:
wget 'http://chromedriver.storage.googleapis.com/2.14/chromedriver_linux64.zip
If you don’t have chrome:
sudo apt-get install chromium-browser
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=localhost:10.0
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
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.