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

Function test_settings_changed

tests/test_utils.py:18–27  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

16
17
18def test_settings_changed():
19 settings = RedisSettings(port=123)
20 assert settings.port == 123
21 assert (
22 "RedisSettings(host='localhost', port=123, unix_socket_path=None, database=0, username=None, password=None, "
23 "ssl=False, ssl_keyfile=None, ssl_certfile=None, ssl_cert_reqs='required', ssl_ca_certs=None, "
24 'ssl_ca_data=None, ssl_check_hostname=False, conn_timeout=1, conn_retries=5, conn_retry_delay=1, '
25 "max_connections=None, sentinel=False, sentinel_master='mymaster', "
26 'retry_on_timeout=False, retry_on_error=None, retry=None)'
27 ) == str(settings)
28
29
30async def test_redis_timeout(mocker, create_pool):

Callers

nothing calls this directly

Calls 1

RedisSettingsClass · 0.90

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…