backend.globaleaks.tests.handlers.admin.test_field

Module Contents

Functions

get_id_of_first_step_of_questionnaire(session, questionnaire_id)
backend.globaleaks.tests.handlers.admin.test_field.get_id_of_first_step_of_questionnaire(session, questionnaire_id)[source]
class backend.globaleaks.tests.handlers.admin.test_field.TestFieldCreate[source]

Bases: globaleaks.tests.helpers.TestHandler

_handler[source]
test_post(self)[source]

Attempt to create a new field via a post request.

test_post_create_from_template(self)[source]

Attempt to create a new field from template via post request

class backend.globaleaks.tests.handlers.admin.test_field.TestFieldInstance[source]

Bases: globaleaks.tests.helpers.TestHandler

_handler[source]
test_put(self)[source]

Attempt to update a field, changing its type via a put request.

test_delete(self)[source]

Create a new field, then attempt to delete it.

class backend.globaleaks.tests.handlers.admin.test_field.TestFieldTemplateInstance[source]

Bases: globaleaks.tests.helpers.TestHandlerWithPopulatedDB

_handler[source]
test_put(self)[source]

Attempt to update a field, changing its type via a put request.

test_delete(self)[source]

Create a new field template, then attempt to delete it.

class backend.globaleaks.tests.handlers.admin.test_field.TestFieldTemplatesCollection[source]

Bases: globaleaks.tests.helpers.TestHandlerWithPopulatedDB

_handler[source]
test_get(self)[source]

Retrieve a list of all fields, and verify that they do exist in the database.

test_post(self)[source]

Attempt to create a new field via a post request.