CliLogTestBase¶
-
class
lsst.daf.butler.tests.
CliLogTestBase
¶ Bases:
object
Tests log initialization, reset, and setting log levels.
Attributes Summary
lsstLogHandlerId
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
()testLongLog
()Verify the timestamp is in the log messages when the –long-log flag is set. test_butlerCliLog
()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. test_helpLogReset
()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)¶ 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
()¶
-
testLongLog
()¶ Verify the timestamp is in the log messages when the –long-log flag is set.
-
test_butlerCliLog
()¶ 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.
-
test_helpLogReset
()¶ Verify that when a command does not execute, like when the help menu is printed instead, that CliLog is still reset.
-