MCPcopy
hub / github.com/mosaicml/composer / test_timestep_bad_strings

Function test_timestep_bad_strings

tests/test_time.py:273–275  ·  view source on GitHub ↗
(time_string: str)

Source from the content-addressed store, hash-verified

271
272@pytest.mark.parametrize('time_string', ['1.1iter', '1.5ep', '2.1ba', '3.2sp', '3.4tok', '0.1sec'])
273def test_timestep_bad_strings(time_string: str):
274 with pytest.raises(TypeError):
275 Time.from_timestring(time_string)
276
277
278@pytest.mark.parametrize('time_string', ['0.5dur', '1.0iter', '2.0ep', '3.000ba', '030.0sp', '30sec'])

Callers

nothing calls this directly

Calls 1

from_timestringMethod · 0.80

Tested by

no test coverage detected