beat.web.databases.tests module

class beat.web.databases.tests.DatabaseAPIBase(methodName='runTest')[source]

Bases: beat.web.common.testutils.BaseTestCase

DATABASE_V1 = {'protocols': [{'name': 'protocol1', 'template': 'test', 'sets': [{'name': 'set1', 'template': 'set', 'view': 'dummy', 'parameters': {'annotations': '/path/to/annotations'}, 'outputs': {'out': 'system/float/1'}}]}], 'root_folder': '/path/to/root/folder'}
DATABASE_V2 = {'protocols': [{'name': 'protocol1', 'template': 'set1/1', 'views': {'set1': {'view': 'dummy', 'parameters': {'annotations': '../annotations'}}}}], 'root_folder': '/path/to/root/folder', 'schema_version': 2}
PROTOCOL_TEMPLATE = {'schema_version': 1, 'sets': [{'name': 'set1', 'outputs': {'out': 'system/float/1'}}]}
setUp()[source]

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

tearDown()[source]

Hook method for deconstructing the test fixture after testing it.

class beat.web.databases.tests.DatabaseCreationAPI(methodName='runTest')[source]

Bases: beat.web.databases.tests.DatabaseAPIBase

setUp()[source]

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

test_no_access_for_anonymous_user()[source]
test_no_access_for_non_admin_user()[source]
test_create_database_failure()[source]
test_create_database()[source]
class beat.web.databases.tests.DatabaseRetrievalAPI(methodName='runTest')[source]

Bases: beat.web.databases.tests.DatabaseAPIBase

setUp()[source]

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

tearDown()[source]

Hook method for deconstructing the test fixture after testing it.

test_retrieve_database()[source]
test_dated_database_for_user()[source]
test_dated_database_for_public()[source]