MCPcopy Create free account
hub / github.com/Open-Bee/DataStudio / test_init_with_log_file

Method test_init_with_log_file

tests/utils/test_logging.py:133–140  ·  view source on GitHub ↗

Test initialization with log file.

(self, temp_dir)

Source from the content-addressed store, hash-verified

131 assert logger is not None
132
133 def test_init_with_log_file(self, temp_dir):
134 """Test initialization with log file."""
135 log_file = os.path.join(temp_dir, "test.log")
136 logger = Logger(log_file=log_file)
137
138 # Log file should be created
139 logger.info("Test message")
140 logger.close()
141
142 def test_init_with_work_dir(self, temp_dir):
143 """Test initialization with work_dir."""

Callers

nothing calls this directly

Calls 3

infoMethod · 0.95
closeMethod · 0.95
LoggerClass · 0.90

Tested by

no test coverage detected