Skip to content

Commit f777faf

Browse files
committed
test: Enable one test
1 parent f33ac4f commit f777faf

File tree

1 file changed

+11
-11
lines changed

1 file changed

+11
-11
lines changed

test/test_shell_logger.py

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff 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:

0 commit comments

Comments
 (0)