mirror of
https://github.com/OpenFreeEnergy/openfe.git
synced 2026-06-06 15:50:20 +08:00
* isort for docs and utils * isort for top-level openfe, analysis, setup * isort setup/ * isort storage/ * isort protocols * isort openn_afe * isort openmm_rfe * isort all protocols * apply isort to openfe/tests * apply isort to openfecli * apply isort to devtools/ * add TODO for setup init
21 lines
463 B
Python
21 lines
463 B
Python
import os
|
|
|
|
import pytest
|
|
from plugcli.params import NOT_PARSED
|
|
|
|
from openfecli.parameters.utils import import_parameter
|
|
|
|
|
|
@pytest.mark.parametrize(
|
|
"import_str,expected",
|
|
[
|
|
("os.path.exists", os.path.exists),
|
|
("os.getcwd", os.getcwd),
|
|
("os.foo", NOT_PARSED),
|
|
("foo.bar", NOT_PARSED),
|
|
("foo", NOT_PARSED),
|
|
],
|
|
)
|
|
def test_import_parameter(import_str, expected):
|
|
assert import_parameter(import_str) is expected
|