schrodinger.application.models.test.library_contract module¶
Test contract for AbstractModelLibrary implementations.
This module provides a test contract that can be used to verify that concrete implementations of AbstractModelLibrary properly implement the interface.
- class schrodinger.application.models.test.library_contract.ModelLibraryContract¶
Bases:
objectTest contract for AbstractModelLibrary implementations.
Subclasses are required to implement
make_library()to run any necessary cleanup in theteardown()method.- make_library() AbstractModelLibrary¶
- make_sample_def(definition_id: str) ModelDefinition¶
Return a definition suitable for testing the given library.
- setup()¶
- test_createDefinition()¶
- test_updateDefinition()¶
- test_getDefinition()¶
- test_createConfiguration()¶
- test_getConfiguration()¶
- test_getAllDefinitionIds()¶
- test_getAllConfigurationIds()¶
- test_getDefinitionVersions()¶
- test_getConfigurationVersions()¶
- test_createExecutionRecord()¶
- test_getExecutionRecord()¶
- test_getAllExecutionRecordIds()¶
- test_getCurrentUser()¶
- test_getDefinitions()¶
- test_getConfigurations()¶
- test_loadCompositeModel()¶
- test_buildConfigurationChain()¶
- test_recordModelExecution()¶