Django Test Addons’s documentation!¶
Django test addons provides support for testing different databases along with Django Web Framework. By default, django provides support for relational databases only. Since no-sql database systems are being widely used in django community, testing support for them is vital. As of now, django test addons provides testing support for Mongodb, Redis, Neo4j, Memcache, Django Rest Framework APIs only. Support for more databases might be provided in future.
pip install django-test-addons
Django test addons requires the following:
- Django(1.6, 1.7, 1.8, 1.9)
The following packages are optional:
Package may work perfectly for older versions than specified. It’s just that it is not tested with them. So feel free to give it a try.
- 1. Installation
- 2. Requirements
- 3. Tutorial
- 3.1. Getting Started
- 3.2. Testing Mongodb
- 3.3. Testing Memcache
- 3.4. Testing Redis
- 3.5. Testing Neo4j Graph database
- 3.6. Testing Django Rest Framework APIs
- 3.7. Composite Testing
- 3.8. Facing Issues
- 4. Changelog
- 5. Community
- 6. Contributing
- 7. License
- 8. Indices and tables
Changes in version 1.0¶
- Support for Django 1.9 along with Python 3
Changes in version 0.3.6¶
- Updated pypi download url to the latest version (Minor update)
Changes in version 0.3.5¶
- Fix APIClient bug. It was not working due to incorrect name error (use of self instead of cls)
Yes please! I am always looking for contributions, additions and improvements. Support for testing more databases is specifically required.
The source is available on GitHub and contributions are always encouraged. Contributions can be as simple as minor tweaks to this documentation, the website or the core.
To contribute, fork the project on GitHub and send a pull request.
The MIT License (MIT)
Copyright (c) 2015, Hakampreet Singh Pandher
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the “Software”), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.