django-basetestcase-1.1.8
توضیحات
A collection of cheater methods for the Django TestCase.
| ویژگی | مقدار |
|---|---|
| سیستم عامل | OS Independent |
| نام فایل | django-basetestcase-1.1.8 |
| نام | django-basetestcase |
| نسخه کتابخانه | 1.1.8 |
| نگهدارنده | [] |
| ایمیل نگهدارنده | [] |
| نویسنده | Carl Brubaker |
| ایمیل نویسنده | spleeding@juno.com |
| آدرس صفحه اصلی | https://github.com/spleeding1/django-basetestcase |
| آدرس اینترنتی | https://pypi.org/project/django-basetestcase/ |
| مجوز | - |
# django-basetestcase
BaseTestCase is a collection of cheater methods for the Django TestCase. They are extensions of the Django TestCase. These came about as a result of learning and using TDD.
There are four different classes:
1. [ModelTestCase](https://github.com/Spleeding1/django-basetestcase/blob/master/ModelTestCase.md)
2. [FormTestCase](https://github.com/Spleeding1/django-basetestcase/blob/master/FormTestCase.md)
3. [ViewTestCase](https://github.com/Spleeding1/django-basetestcase/blob/master/ViewTestCase.md)
4. [FunctionalTestCase](https://github.com/Spleeding1/django-basetestcase/blob/master/FunctionalTestCase.md)
- For use with Selenium.
- Origins and some methods from "Obey The Testing Goat".
## Quickstart
To install:
`pip install django-basetestcase`
To use in a test:
`from basetestcase import ModelTestCase`
Please check out the [source code](https://github.com/Spleeding1/django-basetestcase/tree/master/django-basetestcase/basetestcase) for details. Documentation will be coming bit by bit. Any suggestions or issues, please let me know.
### Compatibility
This was built using Python 3.7 and Django 2.1.7. Anything prior to that has no guarantees.
### What's new?
[FormTestCase](https://github.com/Spleeding1/django-basetestcase/blob/master/django-basetestcase/FormTestCase.md) Now has a `formset_error_test`.
[FunctionalTestCase](https://github.com/Spleeding1/django-basetestcase/blob/master/django-basetestcase/FunctionalTestCase.md#error_test) now accepts `xpath`.
نحوه نصب
نصب پکیج whl django-basetestcase-1.1.8:
pip install django-basetestcase-1.1.8.whl
نصب پکیج tar.gz django-basetestcase-1.1.8:
pip install django-basetestcase-1.1.8.tar.gz