rest_framework_tricks.tests package¶
Submodules¶
rest_framework_tricks.tests.base module¶
Base tests.
rest_framework_tricks.tests.test_nested_proxy_field module¶
Test NestedProxyField.
- class rest_framework_tricks.tests.test_nested_proxy_field.TestNestedProxyFieldCreateAction(methodName='runTest')[source]¶
Bases:
TestNestedProxyFieldActionBase
Test NestedProxyField - create action.
- get_client_action() Callable [source]¶
Get client action.
- Returns:
Client action.
- Return type:
callable
- get_status_code() int [source]¶
Get status code.
- Returns:
Status code expected as result of the action.
- Return type:
str
- test_another_nested_proxy_field_model_serializer_depth()[source]¶
Test NestedProxyField and ModelSerializer with more depth.
- test_another_nested_proxy_field_model_serializer_more_depth()[source]¶
Test NestedProxyField and ModelSerializer with more depth.
- test_nested_proxy_field_hyperlinked_model_serializer()[source]¶
Test NestedProxyField and HyperlinkedModelSerializer.
- test_nested_proxy_field_model_serializer_depth()[source]¶
Test NestedProxyField and ModelSerializer with more depth.
- test_nested_proxy_field_model_serializer_depth_missing_fields()[source]¶
Test NestedProxyField and ModelSerializer with more depth.
Several non-required fields are missing.
- test_nested_proxy_field_model_serializer_depth_more_missing_fields()[source]¶
Test NestedProxyField and ModelSerializer with more depth.
All of the non-required fields are missing.
- class rest_framework_tricks.tests.test_nested_proxy_field.TestNestedProxyFieldUpdateAction(methodName='runTest')[source]¶
Bases:
TestNestedProxyFieldActionBase
Test NestedProxyField - update action.
- get_client_action() Callable [source]¶
Get client action.
- Returns:
Client action.
- Return type:
callable
- get_status_code() int [source]¶
Get status code.
- Returns:
Status code expected as result of the action.
- Return type:
str
- pytestmark = [Mark(name='django_db', args=(), kwargs={}), Mark(name='django_db', args=(), kwargs={})]¶
- test_another_nested_proxy_field_model_serializer_depth()[source]¶
Test NestedProxyField and ModelSerializer with more depth.
- test_another_nested_proxy_field_model_serializer_more_depth()[source]¶
Test NestedProxyField and ModelSerializer with more depth.
- test_nested_proxy_field_hyperlinked_model_serializer()[source]¶
Test NestedProxyField and HyperlinkedModelSerializer.
- test_nested_proxy_field_model_serializer_depth()[source]¶
Test NestedProxyField and ModelSerializer with more depth.
- test_nested_proxy_field_model_serializer_depth_missing_fields()[source]¶
Test NestedProxyField and ModelSerializer with more depth.
Several non-required fields are missing.
- test_nested_proxy_field_model_serializer_depth_more_missing_fields()[source]¶
Test NestedProxyField and ModelSerializer with more depth.
All of the non-required fields are missing.
rest_framework_tricks.tests.test_ordering_filter module¶
Test OrderingFilter.
- class rest_framework_tricks.tests.test_ordering_filter.TestOrderingFilter(methodName='runTest')[source]¶
Bases:
BaseRestFrameworkTestCase
Test OrderingFilter.
- pytestmark = [Mark(name='django_db', args=(), kwargs={}), Mark(name='django_db', args=(), kwargs={})]¶
rest_framework_tricks.tests.test_utils module¶
Test utils.