(env: SetEnv, caplog)
| 177 | |
| 178 | |
| 179 | def 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 | |
| 188 | def test_import_string_valid(): |
nothing calls this directly
no test coverage detected
searching dependent graphs…