one.tests.remote.test_remote_aws

Tests for the one.remote.aws module.

Classes

TestAWS

Tests for AlyxClient authentication, token storage, login/out methods and user prompts

TestAWSPublic

This test relies on downloading the cache folder for open alyx as it is rather small The assertions may change if the content does change.

TestUtils

Tests for one.remote.aws utility functions

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

Bases: TestCase

This test relies on downloading the cache folder for open alyx as it is rather small The assertions may change if the content does change. If the folder grows bigger, we could create a dedicated test folder for this test

source = 'caches/openalyx/cache_info.json'
test_download_file()[source]

Test for one.aws.remote.s3_download_file function.

test_download_folder()[source]

Test for one.remote.aws.s3_download_public_folder function.

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

Bases: TestCase

Tests for AlyxClient authentication, token storage, login/out methods and user prompts

repo = None
tempdir = None
classmethod setUpClass() None[source]

Hook method for setting up class fixture before running tests in the class.

test_credentials()[source]

Test for one.remote.aws.get_aws_access_keys function.

test_get_s3_from_alyx(session_mock)[source]

Tests for one.remote.aws.get_s3_from_alyx function

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

Bases: TestCase

Tests for one.remote.aws utility functions

test_get_s3_virtual_host()[source]

Tests for one.remote.aws.get_s3_virtual_host function