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

Function test_settings_from_socket_dsn

tests/test_utils.py:231–257  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

229
230
231def test_settings_from_socket_dsn():
232 settings = RedisSettings.from_dsn('unix:///run/redis/redis.sock')
233 # insert_assert(asdict(settings))
234 assert asdict(settings) == {
235 'host': 'localhost',
236 'port': 6379,
237 'unix_socket_path': '/run/redis/redis.sock',
238 'database': 0,
239 'username': None,
240 'password': None,
241 'ssl': False,
242 'ssl_keyfile': None,
243 'ssl_certfile': None,
244 'ssl_cert_reqs': 'required',
245 'ssl_ca_certs': None,
246 'ssl_ca_data': None,
247 'ssl_check_hostname': False,
248 'conn_timeout': 1,
249 'conn_retries': 5,
250 'conn_retry_delay': 1,
251 'sentinel': False,
252 'sentinel_master': 'mymaster',
253 'retry_on_timeout': False,
254 'retry_on_error': None,
255 'retry': None,
256 'max_connections': None,
257 }

Callers

nothing calls this directly

Calls 1

from_dsnMethod · 0.80

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…