toil.test.lib.url_plugin_test

Attributes

logger

Classes

FakeURLPlugin

Widget for accessing external storage (URLs).

TestURLAccess

Legacy common base class for Toil tests.

Module Contents

toil.test.lib.url_plugin_test.logger
class toil.test.lib.url_plugin_test.FakeURLPlugin

Bases: toil.lib.url.URLAccess

Widget for accessing external storage (URLs).

class toil.test.lib.url_plugin_test.TestURLAccess(methodName='runTest')

Bases: toil.test.ToilTest

Legacy common base class for Toil tests.

New tests should be made in the ‘pytest’ style and not use this class.

When running tests you may optionally set the TOIL_TEST_TEMP environment variable to the path of a directory where you want temporary test files be placed. The directory will be created if it doesn’t exist. The path may be relative in which case it will be assumed to be relative to the project root. If TOIL_TEST_TEMP is not defined, temporary files and directories will be created in the system’s default location for such files and any temporary files or directories left over from tests will be removed automatically removed during tear down. Otherwise, left-over files will not be removed.

setUp()

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

Return type:

None

tearDown()

Hook method for deconstructing the test fixture after testing it.

Return type:

None

test_url_exists()
Return type:

None

test_get_size()
Return type:

None

test_get_is_directory()
Return type:

None

test_list_url()
Return type:

None

test_read_from_url()
Return type:

None

test_open_url()
Return type:

None