Test the mentorship¶
Test the mentorship profile¶
Test user mentorship profile views module.
- class TestMentorshipPage(methodName='runTest')¶
Bases:
TestCase
Test the access to the user mentorship profile.
- test_student_access() None ¶
Test the student access to page.
- test_mentor_access() None ¶
Test the mentor access to page.
- test_other_user_access() None ¶
Test the other user access to page.
Test the mentorship request¶
Test request, accept, delete and create views mentorship module.
- class MentorshipTestMixin(methodName='runTest')¶
Bases:
TestCase
Mentorship test mixin.
- property is_exists_mentorship_request: bool¶
Is exists mentorship request (bool, reade-only).
- property is_exists_mentorship: bool¶
Is exists mentorship (bool, reade-only).
- class TestSendMentorshipRequestView(methodName='runTest')¶
Bases:
MentorshipTestMixin
,TestCase
Test send the request to mentorship view.
- test_send_mentorship_request_by_student() None ¶
Send request to mentorship by student.
- test_send_mentorship_request_to_non_existent_user() None ¶
Send request to mentorship to non-existent user.
- test_send_mentorship_request_to_mentor() None ¶
Send request the mentorship to already assigned mentor.
- test_send_mentorship_request_by_mentor() None ¶
Send request to mentorship by student to itself.
- test_send_mentorship_request_by_anonymous() None ¶
Send request to mentorship by anonymous.
- class TestDeleteMentorshipRequestView(methodName='runTest')¶
Bases:
MentorshipTestMixin
,TestCase
Test delete the request to mentorship view.
- test_delete_mentorship_request_by_student() None ¶
Test to delete the mentorship request by student.
- test_delete_mentorship_request_by_mentor() None ¶
Test to delete the mentorship request by mentor.
- test_delete_mentorship_request_by_other_user() None ¶
Test to delete the mentorship request by other user.
- test_delete_mentorship_request_by_anonymous() None ¶
Test to delete the mentorship request by anonymous.
- class TestDeleteMentorshipView(methodName='runTest')¶
Bases:
MentorshipTestMixin
,TestCase
Test delete mentorship view.
- test_delete_mentorship_by_student() None ¶
Test delete mentorship by student.
- test_delete_mentorship_by_mentor() None ¶
Test delete mentorship by mentor.
- test_delete_mentorship_by_other_user() None ¶
Test delete mentorship by other user.
- test_delete_mentorship_by_anonymous() None ¶
Test delete mentorship by other anonymous.
- class AcceptRequestToMentorship(methodName='runTest')¶
Bases:
MentorshipTestMixin
,TestCase
Test accept the request to mentorship.
- test_accept_mentorship_request_by_mentor() None ¶
Test access mentorship request by mentor.
- test_accept_mentorship_request_by_student() None ¶
Test access mentorship request by student.
- test_accept_mentorship_request_by_other_user() None ¶
Test access mentorship request by other user.
- test_accept_mentorship_request_by_anonymous() None ¶
Test access mentorship request by anonymous.