MCPcopy Index your code
hub / github.com/bayesian-optimization/BayesianOptimization / test_initialization

Function test_initialization

tests/test_logger.py:20–30  ·  view source on GitHub ↗

Test logger initialization with default and custom parameters.

()

Source from the content-addressed store, hash-verified

18
19
20def test_initialization():
21 """Test logger initialization with default and custom parameters."""
22 # Default parameters
23 logger = ScreenLogger()
24 assert logger.verbose == 2
25 assert not logger.is_constrained
26
27 # Custom parameters
28 logger = ScreenLogger(verbose=0, is_constrained=True)
29 assert logger.verbose == 0
30 assert logger.is_constrained
31
32
33def test_verbose_property():

Callers

nothing calls this directly

Calls 1

ScreenLoggerClass · 0.90

Tested by

no test coverage detected