We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 584676f commit ed087d2Copy full SHA for ed087d2
launch/test/launch/test_launch_service.py
@@ -26,7 +26,18 @@
26
27
def test_launch_service_constructors():
28
"""Test the constructors for LaunchService class."""
29
- LaunchService()
+ # When no name is provided for log file
30
+ ls = LaunchService()
31
+ assert ls._log_file_name == 'launch.log'
32
+ assert ls._logger_name == 'launch'
33
+ # WHen log file name is provided without .log
34
+ ls = LaunchService(log_file_name='custom_logger')
35
+ assert ls._log_file_name == 'custom_logger.log'
36
+ assert ls._logger_name == 'custom_logger'
37
+ # When log file name is provided with .log
38
+ ls = LaunchService(log_file_name='custom_logger.log')
39
40
41
LaunchService(debug=True)
42
LaunchService(debug=False)
43
0 commit comments