style: ruff format (new quality gate check picked up from main)
This commit is contained in:
@@ -28,8 +28,13 @@ def mocks(monkeypatch):
|
||||
patched[name] = m
|
||||
|
||||
patched['build_postgres_config'].return_value = {
|
||||
'host': 'localhost', 'port': 5432, 'user': 'u', 'password': 'p',
|
||||
'dbname': 'd', 'min_connections': 5, 'max_connections': 20,
|
||||
'host': 'localhost',
|
||||
'port': 5432,
|
||||
'user': 'u',
|
||||
'password': 'p',
|
||||
'dbname': 'd',
|
||||
'min_connections': 5,
|
||||
'max_connections': 20,
|
||||
}
|
||||
patched['OpcConnectionPool'].return_value.close_all = AsyncMock()
|
||||
patched['OpcConnectionPool'].return_value.release_idle = AsyncMock()
|
||||
@@ -52,8 +57,12 @@ def make_runtime(**config_overrides):
|
||||
|
||||
def test_builds_object_graph_with_config_flags(mocks):
|
||||
runtime = make_runtime(
|
||||
write_timestamp=False, write_quality=False, write_min_pause_s=0.25,
|
||||
cert_bucket='my-bucket', cert_cache_dir='certs-cache', grpc_enabled=False,
|
||||
write_timestamp=False,
|
||||
write_quality=False,
|
||||
write_min_pause_s=0.25,
|
||||
cert_bucket='my-bucket',
|
||||
cert_cache_dir='certs-cache',
|
||||
grpc_enabled=False,
|
||||
)
|
||||
|
||||
mocks['OpcConnectionPool'].assert_called_once()
|
||||
|
||||
Reference in New Issue
Block a user