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

Function test_ms_to_datetime_tz_invalid

tests/test_utils.py:179–185  ·  view source on GitHub ↗
(env: SetEnv, caplog)

Source from the content-addressed store, hash-verified

177
178
179def test_ms_to_datetime_tz_invalid(env: SetEnv, caplog):
180 arq.utils.get_tz.cache_clear()
181 env.set('ARQ_TIMEZONE', 'foobar')
182 caplog.set_level(logging.WARNING)
183 dt = arq.utils.ms_to_datetime(1_647_345_420_000)
184 assert dt.isoformat() == '2022-03-15T11:57:00+00:00'
185 assert "unknown timezone: 'foobar'\n" in caplog.text
186
187
188def test_import_string_valid():

Callers

nothing calls this directly

Calls 1

setMethod · 0.80

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…