File tree 1 file changed +11
-11
lines changed 1 file changed +11
-11
lines changed Original file line number Diff line number Diff line change @@ -90,17 +90,17 @@ def test_hello_world() -> None:
90
90
# return parent
91
91
92
92
93
- # def test_initialization_creates_stream_dir() -> None:
94
- # """
95
- # Ensure the stream directory is created.
96
-
97
- # Verify the initialization of a parent :class:`ShellLogger` object
98
- # creates a temporary directory
99
- # (``log_dir/%Y-%m-%d_%H%M%S``<random string>) if not already created.
100
- # """
101
- # logger = ShellLogger(stack()[0][3], log_dir=Path.cwd())
102
- # timestamp = logger.init_time.strftime("%Y-%m-%d_%H.%M.%S.%f")
103
- # assert len(list(Path.cwd().glob(f"{timestamp}_*"))) == 1
93
+ def test_initialization_creates_stream_dir () -> None :
94
+ """
95
+ Ensure the stream directory is created.
96
+
97
+ Verify the initialization of a parent :class:`ShellLogger` object
98
+ creates a temporary directory
99
+ (``log_dir/%Y-%m-%d_%H%M%S``<random string>) if not already created.
100
+ """
101
+ logger = ShellLogger (stack ()[0 ][3 ], log_dir = Path .cwd ())
102
+ timestamp = logger .init_time .strftime ("%Y-%m-%d_%H.%M.%S.%f" )
103
+ assert len (list (Path .cwd ().glob (f"{ timestamp } _*" ))) == 1
104
104
105
105
106
106
# def test_initialization_creates_html_file() -> None:
You can’t perform that action at this time.
0 commit comments