schrodinger.test.ld_base_test_classes module

class schrodinger.test.ld_base_test_classes.MockBaseLDTreeItemWrapper(name=None, id_=None, title=None, live_report=None)[source]

Bases: schrodinger.test.mock_ld_models.MockNameAndID

__init__(name=None, id_=None, title=None, live_report=None)[source]
property name
class schrodinger.test.ld_base_test_classes.BaseTestCases[source]

Bases: object

class ExportBasePanelTest[source]

Bases: schrodinger.test.custom_test_classes.MultiModulePatchMixin

MODULE_MAP = {'get_ld_client_and_models': 'schrodinger.application.livedesign.login', 'login': ['schrodinger.application.livedesign.ld_export']}
PANEL_CLASS = NotImplemented
setup()[source]
test_setStatus()[source]

Verify that the setStatus() method properly alters the task bar.

test__onLiveReportTextEdited(mock_avail_maps)[source]

Verify that the panel responds appropriately when the user finishes editing the live report line edit. This should update relevant instance variables of the panel and attempt to retrieve information from the LiveDesign server.

mock_avail_maps is necessary to avoid any actual directories being accessed (PANEL-15417).

teardown()
class ImportBasePanelTest[source]

Bases: schrodinger.test.custom_test_classes.MultiModulePatchMixin

MODULE_MAP = {'get_ld_client_and_models': 'schrodinger.application.livedesign.login', 'login': ['schrodinger.application.livedesign.ld_base_classes', 'schrodinger.application.livedesign.ld_import']}
PANEL_CLASS = None
setup()[source]
testInstantiation()[source]

Make sure that the panel can be instantiated

test_processTaskMessage(mock_question, mock_info, mock_error, mock_warning)[source]

Test if all messaging signals for the Task Runner are connected to the GUI.

test__onLiveReportURLLoad(mock_avail_maps)[source]

Verify that the panel responds appropriately when the user finishes editing the live report line edit and clicks the confirm button. This should update relevant instance variables of the panel and attempt to retrieve information from the LiveDesign server.

teardown()
schrodinger.test.ld_base_test_classes.get_bolded_text(text)[source]

Returns the text with HTML bold tags applied

Parameters

text (str) – text to bold

Returns

bolded text

Return type

str