Fixed:
- Fixed
long_description
for PyPI.
Support:
- Updated support and now also tested against Django 3.0, and Python 3.8.
Fixed:
- Fixed bug that caused attribute checks in
test_detail
with callables inattributes_to_check
to fail.
Removed:
- Official support for Python 3.2 since it's not supported by py.test.
Support:
- Updated support and now also tested against Django 1.8, and DRF 3.1, 3.2 and 3.3.
Breaking:
- A new
pagination_results_field
attribute on theListAPITestCaseMixin
that controls the name of the key the result set is nested under. This was previously hardcoded to'results'
but now defaults toNone
, which means the test assumes pagination is turned off.
New:
response_lookup_field
attribute and correspondingget_lookup_from_response()
toCreateAPITestCaseMixin
for custom lookups of the created object in DB from the response data.relationship_lookup_field
attribute and correspondingget_relationship_value()
toUpdateAPITestCaseMixin
for custom lookups of related objects, e.g. when using aHyperlinkedRelatedField
.- Added missing kwargs in
get_update_response()
(Thanks, @sramana!).- Allow passing a dictionary to
_update_check_db()
for performing checks on serialized object.data
argument toTransitionAPITestCaseMixin.transition()
to pass toclient.post()
as data.
Removed:
- Related objects with a
uuid
field are not looked up automatically anymore. Use the newrelationship_lookup_field
attribute andget_relationship_value()
method.
New:
- First public stable version of Django-REST-Assured.