Skip to content

Commit a16a85c

Browse files
committed
Merge branch 'main' of github.com:openpathsampling/openpathsampling-cli into release-0.3
2 parents 24df36f + d94f993 commit a16a85c

File tree

4 files changed

+12
-5
lines changed

4 files changed

+12
-5
lines changed

.github/workflows/test-suite.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,12 +24,12 @@ jobs:
2424
strategy:
2525
matrix:
2626
CONDA_PY:
27+
- "3.12"
2728
- "3.11"
2829
- "3.10"
29-
- "3.9"
3030
INTEGRATIONS: [""]
3131
include:
32-
- CONDA_PY: "3.11"
32+
- CONDA_PY: "3.12"
3333
INTEGRATIONS: 'all-optionals'
3434

3535
steps:

paths_cli/cli.py

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -95,6 +95,13 @@ def main(log):
9595
logging.config.fileConfig(log, disable_existing_loggers=False)
9696
# TODO: if log not given, check for logging.conf in .openpathsampling/
9797

98+
# TODO: remove when openmmtools doesn't trigger these warnings
99+
silence_warnings = ['pymbar.mbar_solvers', 'pymbar.timeseries']
100+
for lname in silence_warnings:
101+
logger = logging.getLogger(lname)
102+
logger.setLevel(logging.CRITICAL)
103+
104+
98105
logger = logging.getLogger(__name__)
99106
logger.debug("About to run command") # TODO: maybe log invocation?
100107

paths_cli/tests/compiling/test_root_compiler.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -247,8 +247,8 @@ def test_register_plugins_unit(foo_compiler_plugin, foo_baz_builder_plugin):
247247
with patch(BASE + "_register_builder_plugin", Mock()) as builder, \
248248
patch(BASE + "_register_compiler_plugin", Mock()) as compiler:
249249
register_plugins([foo_baz_builder_plugin, foo_compiler_plugin])
250-
assert builder.called_once_with(foo_baz_builder_plugin)
251-
assert compiler.called_once_with(foo_compiler_plugin)
250+
builder.assert_called_once_with(foo_baz_builder_plugin)
251+
compiler.assert_called_once_with(foo_compiler_plugin)
252252

253253

254254
def test_register_plugins_integration(foo_compiler_plugin,

paths_cli/tests/wizard/test_plugin_classes.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ def test_call(self):
3838
with mock.patch(patch_loc, mock_load):
3939
result = loader(wiz)
4040

41-
assert mock_load.called_once_with(wiz, "foos", "foo")
41+
mock_load.assert_called_once_with(wiz, "foos", "foo")
4242
assert result == "some_object"
4343

4444

0 commit comments

Comments
 (0)