command_test_env

lsst.daf.butler.cli.utils.command_test_env(runner, commandModule, commandName)

A context manager that creates (and then cleans up) an environment that provides a CLI plugin command with the given name.

Parameters:
runnerclick.testing.CliRunner

The test runner to use to create the isolated filesystem.

commandModulestr

The importable module that the command can be imported from.

commandNamestr

The name of the command being published to import.