one.tests.test_alyxclient

Classes

TestAuthentication

TestDownloadHTTP

TestJsonFieldMethods

TestMisc

TestRestCache

class TestAuthentication(methodName='runTest')[source]

Bases: unittest.case.TestCase

setUp() → None[source]

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

test_authentication()[source]
test_auth_methods()[source]
class TestJsonFieldMethods(methodName='runTest')[source]

Bases: unittest.case.TestCase

setUp()[source]

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

test_json_methods()[source]
test_empty()[source]
tearDown()[source]

Hook method for deconstructing the test fixture after testing it.

class TestRestCache(methodName='runTest')[source]

Bases: unittest.case.TestCase

setUp()[source]

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

test_loads_cached()[source]
test_expired_cache()[source]
test_caches_response()[source]
test_cache_mode()[source]
test_expiry_param()[source]
test_cache_returned_on_error()[source]
test_clear_cache()[source]
tearDown() → None[source]

Hook method for deconstructing the test fixture after testing it.

class TestDownloadHTTP(methodName='runTest')[source]

Bases: unittest.case.TestCase

setUp()[source]

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

test_paginated_request()[source]
test_update_url_params()[source]
test_generic_request()[source]
test_rest_endpoint_write()[source]
test_rest_endpoint_read_only()[source]
test_download_datasets_with_api()[source]
test_download_datasets()[source]
test_rest_all_actions()[source]
test_endpoints_docs()[source]
class TestMisc(methodName='runTest')[source]

Bases: unittest.case.TestCase

test_update_url_params()[source]