scipost.tests.test_views module

class scipost.tests.test_views.RequestCommentaryTest(methodName='runTest')[source]

Bases: django.test.testcases.TestCase

Test cases for request_commentary view method

setUp()[source]

Hook method for setting up the test fixture before exercising it.

test_get_requests()[source]

Test different GET requests on view

test_post_invalid_forms()[source]

Test different kind of invalid RequestCommentaryForm submits

class scipost.tests.test_views.VetCommentaryRequestsTest(methodName='runTest')[source]

Bases: django.test.testcases.TestCase

Test cases for vet_commentary_requests view method

setUp()[source]

Hook method for setting up the test fixture before exercising it.

set_required_permissions_and_login()[source]

Set the required permissions to testuser to access vet_commentary_requests.

test_user_permissions()[source]

Test view permission is restricted to Vetting Editors.

test_get_valid_unvetted_commentaries()[source]

Test if valid commentaries are sent back to user, if exists.

class scipost.tests.test_views.CommentaryDetailTest(methodName='runTest')[source]

Bases: django.test.testcases.TestCase

setUp()[source]

Hook method for setting up the test fixture before exercising it.

test_status_code_200()[source]