schrodinger.tasks.test.hosts module

schrodinger.tasks.test.hosts.mock_get_hosts(*args, **kwargs)

Return a mock list of hosts for testing.

schrodinger.tasks.test.hosts.patch_get_hosts()

Apply this fixture to any module by importing it and then adding the line pytest.mark.usefixtures('patch_get_hosts') at the module level.

It can alternatively be applied to a particular class or function by decorating the class or function with @pytest.mark.usefixtures('patch_get_hosts').