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.
Source Distributions
File details
Details for the file openstax-accounts-1.0.0.zip
.
File metadata
- Download URL: openstax-accounts-1.0.0.zip
- Upload date:
- Size: 24.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 3ffc938a7935b8d303c74b1ee2f4be7732b97058946a3abfd6019d5b7a87a0df |
|
MD5 | cc0384b5f9a02a1d1fbe6487d16a0e08 |
|
BLAKE2b-256 | cd4a9755a929358ef8b6e732b7de7bbd14192d3bb2e0c9c06f93b2c5416a4492 |
File details
Details for the file openstax-accounts-1.0.0.tar.gz
.
File metadata
- Download URL: openstax-accounts-1.0.0.tar.gz
- Upload date:
- Size: 15.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 32652d77b381101a1131b57cf71a4f5d51ba737c602b3742dae155417fff164f |
|
MD5 | 00ae9e9ee40d8d0775c35f90bedca0e3 |
|
BLAKE2b-256 | 932cbaf8387c8ed77bc212fe573411817309785ae3bbd3277eaadd8727ad53c1 |
File details
Details for the file openstax-accounts-1.0.0.tar.bz2
.
File metadata
- Download URL: openstax-accounts-1.0.0.tar.bz2
- Upload date:
- Size: 13.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 7b3ea8590f42919e617f859fad41fed745dfdd867b5ea893a6a145bec44c2a44 |
|
MD5 | 497ad1bec330369a79e240a1a57fae84 |
|
BLAKE2b-256 | 79a600734df5fa98fddea088f7ffeca651a72338ddac02a2e0263c335cf4c4e3 |