CliLogTestBase¶
- class lsst.daf.butler.tests.CliLogTestBase¶
Bases:
object
Tests log initialization, reset, and setting log levels.
Attributes Summary
Methods Summary
runTest
(cmd)Test that the log context manager works with the butler cli to initialize the logging system according to cli inputs for the duration of the command execution and resets the logging system to its previous state or expected state when command execution finishes.
setUp
()tearDown
()Test --log-file option.
Verify that log output to terminal can be suppressed.
Verify the timestamp is in the log messages when the --long-log flag is set.
Test that the log context manager works with the butler cli to initialize the logging system according to cli inputs for the duration of the command execution and resets the logging system to its previous state or expected state when command execution finishes.
Verify that when a command does not execute, like when the help menu is printed instead, that CliLog is still reset.
Attributes Documentation
- lsstLogHandlerId = None¶
Methods Documentation
- runTest(cmd: Callable) None ¶
Test that the log context manager works with the butler cli to initialize the logging system according to cli inputs for the duration of the command execution and resets the logging system to its previous state or expected state when command execution finishes.