backend.globaleaks.tests.handlers.admin.test_submissions_statuses

Module Contents

Functions

count_submission_statuses(session, tid) Counts all submission statuses in the system
create_substatus(session, submissionstatus_id) Creates a test substatus
backend.globaleaks.tests.handlers.admin.test_submissions_statuses.count_submission_statuses(session, tid)[source]

Counts all submission statuses in the system

backend.globaleaks.tests.handlers.admin.test_submissions_statuses.create_substatus(session, submissionstatus_id)[source]

Creates a test substatus

class backend.globaleaks.tests.handlers.admin.test_submissions_statuses.SubmissionStatusCollectionDesc[source]

Bases: globaleaks.tests.helpers.TestHandlerWithPopulatedDB

_handler[source]
setUp(self)[source]
test_get(self)[source]
test_post(self)[source]
test_get_with_substatuses(self)[source]
class backend.globaleaks.tests.handlers.admin.test_submissions_statuses.SubmissionStatusInstanceDesc[source]

Bases: globaleaks.tests.helpers.TestHandlerWithPopulatedDB

_handler[source]
setUp(self)[source]
create_test_status(self)[source]
test_put(self)[source]

Create a new status and then edit it

test_delete(self)[source]

Delete a status (if possible)

test_delete_with_substatuses(self)[source]

Delete a status (if possible)

class backend.globaleaks.tests.handlers.admin.test_submissions_statuses.SubmissionSubStatusCollectionDesc[source]

Bases: globaleaks.tests.helpers.TestHandlerWithPopulatedDB

_handler[source]
setUp(self)[source]
test_get(self)[source]
test_post(self)[source]
class backend.globaleaks.tests.handlers.admin.test_submissions_statuses.SubmissionSubStatusInstanceDesc[source]

Bases: globaleaks.tests.helpers.TestHandlerWithPopulatedDB

_handler[source]
setUp(self)[source]
test_put(self)[source]
test_delete(self)[source]