diff --git a/CHANGELOG.md b/CHANGELOG.md index f125abfa4..013888ff6 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -7,6 +7,10 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 ## [UNRELEASED] +### Operations + +- Ignore custom executor plugin in how-to's when running `test_deploy_status` CLI test. + ### Changed - Terraform output to use scrolling buffer. diff --git a/tests/covalent_dispatcher_tests/_cli/cli_test.py b/tests/covalent_dispatcher_tests/_cli/cli_test.py index 46d056b1f..ec02aa3f0 100644 --- a/tests/covalent_dispatcher_tests/_cli/cli_test.py +++ b/tests/covalent_dispatcher_tests/_cli/cli_test.py @@ -241,11 +241,25 @@ def test_deploy_status(mocker): Unit test for `covalent deploy status [executor_name]` command. """ + from covalent.executor import _executor_manager from covalent_dispatcher._cli.groups.deploy_group import status # Succeed with empty `executor_names` argument. + # Ignoring extra plugin(s) discovered in CI tests environment. + filtered_plugins_map = { + k: v + for k, v in _executor_manager.executor_plugins_map.items() + if k not in ["timing_plugin"] + } + mock_executor_manager = mocker.patch.object( + _executor_manager, + "executor_plugins_map", + return_value=filtered_plugins_map, + ) + ctx = click.Context(status) ctx.invoke(status, executor_names=[]) + mocker.stop(mock_executor_manager) # stop ignoring any plugins # Succeed with invalid `executor_names` argument. mock_click_style = mocker.patch("click.style")