Skip to main content

An example pyramid app that connects to openstax/accounts

Project description

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


  1. Install virtualenv

  2. virtualenv .

  3. ./bin/python 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


  1. 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
  2. Download chrome driver:

    wget '

    If you don’t have chrome:

    sudo apt-get install chromium-browser
  3. Unzip chrome driver:

  4. Add chrome driver to $PATH:

    export PATH=$PATH:.
  5. Make sure the $DISPLAY is set, for example:

    export DISPLAY=localhost:10.0

    or install xvfb

  6. Run tests without openstax/accounts

    xvfb-run ./bin/python 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 test

Project details

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distributions (24.6 kB view hashes)

Uploaded source

openstax-accounts-1.0.0.tar.gz (15.0 kB view hashes)

Uploaded source

openstax-accounts-1.0.0.tar.bz2 (13.9 kB view hashes)

Uploaded source

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page