Skip to content

Commit dd70fca

Browse files
committed
apply ruff check fixes
1 parent 40eeec7 commit dd70fca

File tree

1 file changed

+3
-7
lines changed

1 file changed

+3
-7
lines changed

tests/unit/logger/test_standard_logging.py

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -122,7 +122,7 @@ def test_init_loggers_file_config():
122122
with tempfile.TemporaryDirectory() as temp_dir:
123123
config = GraphRagConfig(
124124
root_dir=temp_dir,
125-
reporting=ReportingConfig(type=ReportingType.file, base_dir="logs")
125+
reporting=ReportingConfig(type=ReportingType.file, base_dir="logs"),
126126
)
127127

128128
# Call init_loggers with file config
@@ -157,9 +157,7 @@ def test_init_loggers_file_config():
157157

158158
def test_init_loggers_console_config():
159159
"""Test that init_loggers works with console configuration."""
160-
config = GraphRagConfig(
161-
reporting=ReportingConfig(type=ReportingType.console)
162-
)
160+
config = GraphRagConfig(reporting=ReportingConfig(type=ReportingType.console))
163161

164162
# Call init_loggers with console config but no enable_console
165163
init_loggers(config=config, log_level="INFO", enable_console=False)
@@ -178,9 +176,7 @@ def test_init_loggers_console_config():
178176

179177
def test_init_loggers_both_console():
180178
"""Test that init_loggers doesn't duplicate console handlers."""
181-
config = GraphRagConfig(
182-
reporting=ReportingConfig(type=ReportingType.console)
183-
)
179+
config = GraphRagConfig(reporting=ReportingConfig(type=ReportingType.console))
184180

185181
# Call init_loggers with both console config and enable_console=True
186182
init_loggers(config=config, log_level="INFO", enable_console=True)

0 commit comments

Comments
 (0)