Add Dalidou storage foundation and deployment prep
This commit is contained in:
18
tests/test_logging.py
Normal file
18
tests/test_logging.py
Normal file
@@ -0,0 +1,18 @@
|
||||
"""Tests for logging configuration."""
|
||||
|
||||
from types import SimpleNamespace
|
||||
|
||||
import atocore.config as config
|
||||
from atocore.observability.logger import setup_logging
|
||||
|
||||
|
||||
def test_setup_logging_uses_dynamic_settings_without_name_error():
|
||||
original_settings = config.settings
|
||||
try:
|
||||
config.settings = SimpleNamespace(debug=False)
|
||||
setup_logging()
|
||||
|
||||
config.settings = SimpleNamespace(debug=True)
|
||||
setup_logging()
|
||||
finally:
|
||||
config.settings = original_settings
|
||||
Reference in New Issue
Block a user