Reusable Django application for hierarchical organizations.
Project description
# django-orghierarchy
Reusable Django application for hierarchical organizations
## Development
### Tests
#### Unit tests
Run tests
py.test
Run tests with coverage report
py.test –cov-report html –cov .
Open htmlcov/index.html for the coverage report.
#### Integration tests
We need to provide different settings files for the test as the setting variables for swappable model are only evaluated the first time the module is imported.
Run tests
python manage.py test –tag=custom_ds –settings=tests.test_app.settings_custom_ds python manage.py test –tag=custom_pk_ds –settings=tests.test_app.settings_custom_pk_ds
## Import Organization Data
Import organization data from a REST API endpoint
python manage.py import_organizations “http://example.com/v1/organization/”
If the data source needs to be renamed, provides a new data source name to replace the old one:
python manage.py import_organizations “http://example.com/v1/organization/” -s old_name:new_name
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 Distribution
Hashes for django-orghierarchy-0.1.22.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 048dbb84c11d113c84189d356b28cd7ad9d17cf73e8c706a7a459c400ea7816e |
|
MD5 | 4cb8dc4a14e95ddf7203d2c128a413dd |
|
BLAKE2b-256 | 064ba871d5346efe4322d6f0bb7fb6bd8c6dd1add83ef1c514f03e1a43467786 |