MCPcopy Create free account
hub / github.com/python-arq/arq / parse_redis_settings

Method parse_redis_settings

tests/test_utils.py:117–121  ·  view source on GitHub ↗
(cls, v)

Source from the content-addressed store, hash-verified

115
116 @field_validator('redis_settings', mode='before')
117 def parse_redis_settings(cls, v):
118 if isinstance(v, str):
119 return RedisSettings.from_dsn(v)
120 else:
121 return v
122
123 s1 = Settings(redis_settings='redis://foobar:123/4')
124 assert s1.redis_settings.host == 'foobar'

Callers

nothing calls this directly

Calls 1

from_dsnMethod · 0.80

Tested by

no test coverage detected