unittest_utils¶
PyRosettaCluster test utilities using the unittest framework.
- class pyrosetta.tests.distributed.cluster.unittest_utils.TestBase¶
Bases:
object- classmethod setUpClass()¶
- classmethod tearDownClass()¶
- setUp()¶
- tearDown()¶
- class pyrosetta.tests.distributed.cluster.unittest_utils.RuntimeTestLoggingFilter(name='')¶
Bases:
Filter- matches = ('with_lock', 'dry_run', 'save_all', 'Percent Complete', 'simulation complete', 'Attempted to determine the residue type set of an empty pose')¶
- filter(record)¶
Determine if the specified record is to be logged.
Returns True if the record should be logged, or False otherwise. If deemed appropriate, the record may be modified in-place.
- __init__(name='')¶
Initialize a filter.
Initialize with the name of the logger which, together with its children, will have its events allowed through the filter. If no name is specified, allow every event.
- exception pyrosetta.tests.distributed.cluster.unittest_utils.IntentionalError(*args)¶
Bases:
RuntimeError- __init__(*args)¶
- add_note()¶
Exception.add_note(note) – add a note to the exception
- args¶
- with_traceback()¶
Exception.with_traceback(tb) – set self.__traceback__ to tb and return self.
- pyrosetta.tests.distributed.cluster.unittest_utils.score_function_is_available(name)¶
- pyrosetta.tests.distributed.cluster.unittest_utils.pprint_flush(msg)¶