commentaries.tests.test_views module

class commentaries.tests.test_views.PrefillUsingDOITest(methodName='runTest')[source]

Bases: django.test.testcases.TestCase

setUp()[source]

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

test_submit_valid_physrev_doi()[source]
class commentaries.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 commentaries.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]
test_unvetted_commentary()[source]