toil.test.src.miscTests

Attributes

log

Classes

TestMisc

This class contains miscellaneous tests that don't have enough content to be their own test

TestPanic

Module Contents

toil.test.src.miscTests.log
class toil.test.src.miscTests.TestMisc

This class contains miscellaneous tests that don’t have enough content to be their own test file, and that don’t logically fit in with any of the other test suites.

testIDStability()
Return type:

None

testGetSizeOfDirectoryWorks(tmp_path)

A test to make sure toil.common.getDirSizeRecursively does not underestimate the amount of disk space needed.

Disk space allocation varies from system to system. The computed value should always be equal to or slightly greater than the creation value. This test generates a number of random directories and randomly sized files to test this using getDirSizeRecursively.

Parameters:

tmp_path (pathlib.Path)

Return type:

None

test_atomic_install(tmp_path)
Parameters:

tmp_path (pathlib.Path)

Return type:

None

test_atomic_install_dev()
Return type:

None

test_atomic_context_ok(tmp_path)
Parameters:

tmp_path (pathlib.Path)

Return type:

None

test_atomic_context_error(tmp_path)
Parameters:

tmp_path (pathlib.Path)

Return type:

None

test_call_command_ok()
Return type:

None

test_call_command_err()
Return type:

None

class toil.test.src.miscTests.TestPanic
test_panic_by_hand()
Return type:

None

test_panic()
Return type:

None

test_panic_with_secondary()
Return type:

None

test_nested_panic()
Return type:

None

try_and_panic_by_hand()
Return type:

None

try_and_panic()
Return type:

None

try_and_panic_with_secondary()
Return type:

None

try_and_nested_panic_with_secondary()
Return type:

None