Skip to content
Example pyramid app with openstax/accounts integration
Python
Find file
Pull request Compare This branch is 57 commits behind Connexions:master.
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Failed to load latest commit information.
openstax_accounts
.travis.yml
README.rst
development.ini.example
setup.py
test_local.ini
test_server.crt
test_server.key
test_stub.ini
testing.ini.example

README.rst

openstax-accounts-in-pyramid

This is an example python pyramid app that connects to openstax/accounts.

INSTALL

  1. Install virtualenv
  2. virtualenv .
  3. ./bin/python setup.py install
  4. Set up openstax/services (See karenc/openstax-setup)
  5. Register this app with openstax/accounts
  6. Copy development.ini.example to development.ini and change the values
  7. Start the app by ./bin/pserve development.ini

TESTS

  1. Copy testing.ini.example to testing.ini and change the values
  2. Download chrome driver (and chrome if you don't have it): wget 'http://chromedriver.storage.googleapis.com/2.9/chromedriver_linux64.zip'
  3. Unzip chrome driver: unzip chromedriver_linux64.zip
  4. Add chrome driver to $PATH: export PATH=$PATH:.
  5. Make sure the $DISPLAY is set, for example: export DISPLAY=:0 or install xvfb
  6. ./bin/python setup.py test or xvfb-run ./bin/python setup.py test
Something went wrong with that request. Please try again.