Function
test_from_format
(text, fmt, expected, now)
Source from the content-addressed store, hash-verified
| 150 | ], |
| 151 | ) |
| 152 | def test_from_format(text, fmt, expected, now): |
| 153 | now = pendulum.datetime(2015, 11, 12) if now is None else pendulum.parse(now) |
| 154 | |
| 155 | with pendulum.travel_to(now, freeze=True): |
| 156 | assert pendulum.from_format(text, fmt).isoformat() == expected |
| 157 | |
| 158 | |
| 159 | @pytest.mark.parametrize( |
Callers
nothing calls this directly
Tested by
no test coverage detected
Used in the wild real call sites across dependent graphs
searching dependent graphs…