- Drop support for Django < 1.10
- Add support for Django 2.0
- Drop support for Django < 1.8
- Add support for Django 1.11.
- Remove
utils.get_all_field_names
andutils.get_field_by_name
helper methods. See https://docs.djangoproject.com/en/1.10/ref/models/meta/#migrating-from-the-old-api for replacements for these methods. - Update
DummyStorage
to support theSequence
protocol instead of theIterator
protocol.
- Exclude
tests
app from distributed package.
- Add additional deprecated method
get_field_by_name
- Add
get_all_field_names
to compensate for deprecation ofModel._meta
functions in Django 1.10
- Refactor
URLTestMixin.assert_url_matches_view
to checkview.__module__
as well asview.__name__
when checking equality.
- Add
APIExampleMixin
andBaseAPIExampleTestCase
for testing API examples.
- Ensure
assert_url_matches_view
fails if.as_view()
has been forgotten.
- Add
utils.field_names
helper function for model tests.
- Clean deploy to PyPI to avoid including a folder that no longer exists in the wheel.
- Return a file from
uploadable_file()
with a short name to avoid form validation errors.
- Bugfix: Fix MANIFEST.in to include missing files.
- Bugfix: Fix a naming conflict between packages.
- Bugfix: Add a missing
__init__.py
.
- Bugfix: Ensure the methods and factory fields in
factories.images
all output Django File objects.
- Add
factories.images
module with usefuls for handling images in tests.- Provide a
simple_png()
method that creates a 1x1 black .png file in memory. - Provide two factory field classes that help provide data for FileFields and ImageFields.
- Provide an
uploadable_file()
method that creates something you can upload to a form in tests.
- Provide a
- Add
assert_presence
toBaseIntegrationTestCase
. - Add multiple-assert methods that accept a dictionary of assertions to make, and methods that combine accessing the view, rendering it, and asserting the result.
- Add
make install
command to perform local installation of requirements.
- Remove non-standard name attribute on
BaseUserFactory
- Add
BaseAdminUserFactory
- Allow login username to use
USERNAME_FIELD
- Add
BaseAdminIntegrationTestCase
- Add
view_instance
method to RequestTestCase
- Rename Python2CountEqualMixin to Python2AssertMixin
- Add assertRegex to Python2AssertMixin
- Remove requirement for wrapping function-based views in staticmethod.
- Update factories to use
class Meta
with amodel
attribute instead ofFACTORY_FOR
- Add tests for all code
- Fix various bugs caught by the new tests
- Add ability to handle function-based views to BaseRequestTestCase.
- Add ability to augment requests with sessions to BaseRequestTestCase.
- Use both in IntegrationTestCase.
- Reflow IntegrationTestCase's methods for clarity and flexibility.
- Fix various bugs along the way.
- Fix
super
call inBaseAPIRequestTestCase
- Fix bug with DummyStorage object not being iterable when calling render().
- Add
IntegrationTestCase
for testing rendered HTML pages. - Replace
APIRequestTestCase
withBaseRequestTestCase
. Technically backwards-incompatible, but is essentially a bugfix from v3.0.0.
- Replace
UserFactory
withBaseUserFactory
. - Remove
FACTORY_FOR
fromBaseUserFactory
. - Replace
RequestTestCase
withBaseRequestTestCase
. BaseRequestTestCase
requires an explicituser_factory
to be set when subclassing.
- Add ability to override urlconf when using
assert_url_matches_view
.
- Add
compat.DJANGO_LT_15
andcompat.DJANGO_LT_16
.
- Add
compat
module. - Add
compat.DJANGO_LT_17
. - Add
compat.wipe_id_fields_on_django_lt_17
. - Move the Python2CountEqualMixin from
testcases.compat
tocompat
.
- Fix URLTestCase
- Check for cls attribute on
resolved_view
, not view
- Check for cls attribute on
- Remove AbstractModelMixin
- AbstractModelMixin creates multiple versions of the same model class. This confuses the django 1.7 App loader.
- Use a concrete subclass of your abstract model in your test directory instead.
- Simplify testcases.urls
- Add URLTestMixin with
assert_url_matches_view
method - Remove URLsTestCaseREST, URLsTestCaseViewMethod and URLsTestCase
- Remove URLsMixinREST, URLsMixinForViewMethod, URLsMixin and URLsMixinBase
- Add URLTestMixin with
- Add Python2CountEqualMixin to enable use of assertCountEqual in python 2
- Add URLsTestCaseREST and URLsTestCaseViewMethod for cleanliness and ease of use
- Deprecate URLsTestCase
- Refine URLsMixin into two classes, URLsMixinForViewMethod and URLsMixinREST
- Deprecate URLsMixin
- Add URLsMixin and URLsTestCase
- Support wheel
- Add RequestTestCase.
- Remove app-specific tearDown logic from AbstractModelMixin
- Add PageFactory for FeinCMS
- Convert AbstractModelTestCase to mixin.
- Refactor testcases
Initial release.
Add:
- APITestCase
- AbstractModelTestCase
- UserFactory