schrodinger.application.models.test.client_contract module

Test contract for AbstractLibraryClient implementations.

This module provides a test contract that can be used to verify that concrete implementations of AbstractLibraryClient properly implement the interface.

class schrodinger.application.models.test.client_contract.LibraryClientContract

Bases: object

Test contract for AbstractLibraryClient implementations.

Subclasses are required to implement make_client() to run any necessary cleanup in the teardown_method().

make_client() AbstractLibraryClient
setup_method()
test_createDefinition()
test_updateDefinition()
test_getDefinition()
test_createConfiguration()
test_getConfiguration()
test_updateConfiguration()
test_getAllDefinitionIds()
test_getAllConfigurationIds()
test_getDefinitionVersions()
test_getConfigurationVersions()
test_createExecutionRecord()
test_getAllExecutionRecordIds()
test_getCurrentUser()
test_getDefinitions()
test_getConfigurations()
test_deleteDefinition()
test_deleteDefinition_removes_all_versions()
test_deleteConfiguration()
test_deleteConfiguration_removes_all_versions()
test_createExecutionRecord_with_output_files()

Test that output files get IDs assigned during storage.

test_downloadStoredFile()

Test downloading a stored file to a destination path.