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:
runner : click.testing.CliRunner

The test runner to use to create the isolated filesystem.

commandModule : str

The importable module that the command can be imported from.

commandName : str

The name of the command being published to import.