schrodinger.test.fixtures module

Test fixtures

Copyright Schrodinger, LLC. All rights reserved.

schrodinger.test.fixtures.use_static_opls_directory()[source]

Sets OPLS_DIR to static data directory used in testing

class schrodinger.test.fixtures.safe_patch_os_environ(values: Optional[dict] = None)[source]

Bases: contextlib.ContextDecorator

Patch os.environ without clearing it to avoid crashes in threads

Doesn’t overwrite environment variables that are expected/allowed to change under pytest.

__init__(values: Optional[dict] = None)[source]
start()[source]
stop()[source]