File tree Expand file tree Collapse file tree 1 file changed +11
-11
lines changed Expand file tree Collapse file tree 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:
9090# return parent
9191
9292
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
104104
105105
106106# def test_initialization_creates_html_file() -> None:
You can’t perform that action at this time.
0 commit comments