portal_web.tests.unit package¶
Subpackages¶
- portal_web.tests.unit.models package
- portal_web.tests.unit.services package
- portal_web.tests.unit.views package
- Subpackages
- Submodules
- portal_web.tests.unit.views.test_base module
FormControllerMock
FormControllerMockHTTPException
TestViewBase
TestViewBase.test_cleanup_form_deletion()
TestViewBase.test_cleanup_form_dontdeleteforminflow()
TestViewBase.test_cleanup_form_persistence()
TestViewBase.test_process_form_exception()
TestViewBase.test_process_form_processed()
TestViewBase.test_redirect_resource_class()
TestViewBase.test_redirect_resource_instance()
TestViewBase.test_redirect_str()
TestViewBase.test_registerform()
TestViewBase.test_registerform_staticpath()
TestViewBase.test_viewbase()
viewbase()
- Module contents
Submodules¶
portal_web.tests.unit.test_helpers module¶
Helper Tests
portal_web.tests.unit.test_resources module¶
Resources Tests
- class portal_web.tests.unit.test_resources.ResourceBaseChildMock(request, context=None)[source]¶
Bases:
ResourceBase
mock resource base child object
has __parent__
child of ResourceBaseMock
- class portal_web.tests.unit.test_resources.ResourceBaseMock(request, context=None)[source]¶
Bases:
ResourceBase
mock resource base object
- class portal_web.tests.unit.test_resources.TestResources[source]¶
Bases:
object
Resource test class
- test_dictionary_merge_firstlevel_deletion(orig_dict, new_dict)[source]¶
Dictionary merge: Is value being deleted if an empty value {} is assigned in new dictionary?
- test_dictionary_merge_firstlevel_new_persistance(orig_dict, new_dict)[source]¶
Dictionary merge: Does value from new first-level dictionary persist over value of original first-level dictionary?
- test_dictionary_merge_secondlevel_new_persistance(orig_dict, new_dict)[source]¶
Dictionary merge: Does value from new second-level dictionary persist over value of original second-level dictionary?
- class portal_web.tests.unit.test_resources.TestWebRootFactory[source]¶
Bases:
object
WebRootFactory test class