Lines Matching full:pytest
10 import pytest
49 @pytest.mark.parametrize('dt', tuple(DATES))
56 @pytest.mark.parametrize('dt', tuple(DATES))
65 @pytest.mark.parametrize('dt', tuple(DATES))
66 @pytest.mark.parametrize('fmt', YMD_FMTS)
95 @pytest.mark.parametrize('dt', tuple(DATETIMES))
96 @pytest.mark.parametrize('date_fmt', YMD_FMTS)
97 @pytest.mark.parametrize('tzoffset', TZOFFSETS)
102 @pytest.mark.parametrize('dt', tuple(DATETIMES))
103 @pytest.mark.parametrize('date_fmt', YMD_FMTS)
104 @pytest.mark.parametrize('time_fmt', ('%H%M', '%H:%M'))
105 @pytest.mark.parametrize('tzoffset', TZOFFSETS)
113 @pytest.mark.parametrize('dt', tuple(DATETIMES))
114 @pytest.mark.parametrize('date_fmt', YMD_FMTS)
115 @pytest.mark.parametrize('time_fmt', HMS_FMTS)
116 @pytest.mark.parametrize('tzoffset', TZOFFSETS)
121 @pytest.mark.parametrize('dt', tuple(DATETIMES))
122 @pytest.mark.parametrize('date_fmt', YMD_FMTS)
123 @pytest.mark.parametrize('time_fmt', (x + sep + '%f' for x in HMS_FMTS
125 @pytest.mark.parametrize('tzoffset', TZOFFSETS)
126 @pytest.mark.parametrize('precision', list(range(3, 7)))
135 @pytest.mark.parametrize('dt_str', [
142 @pytest.mark.parametrize('tzoffset', FULL_TZOFFSETS)
150 @pytest.mark.parametrize('dt_str', [
165 @pytest.mark.parametrize('datestr', [
169 @pytest.mark.parametrize('sep', [' ', 'a', 'T', '_', '-'])
181 @pytest.mark.parametrize('isocal,dt_expected',[
192 @pytest.mark.parametrize('isocal,dt_expected',[
204 @pytest.mark.parametrize('isoord,dt_expected', [
220 @pytest.mark.parametrize('isostr,dt', [
242 @pytest.mark.parametrize('isostr,exception', [
274 with pytest.raises(exception):
278 @pytest.mark.parametrize('sep_act, valid_sep, exception', [
285 with pytest.raises(exception):
289 @pytest.mark.xfail()
290 @pytest.mark.parametrize('isostr,exception', [
296 with pytest.raises(exception):
302 @pytest.mark.parametrize('sep', [' ', '9', ''])
304 with pytest.raises(ValueError):
309 @pytest.mark.xfail(six.PY3, reason="Fails on Python 3 only")
321 @pytest.mark.parametrize('tzoffset', FULL_TZOFFSETS)
330 @pytest.mark.parametrize('tzstr', [
333 @pytest.mark.parametrize('zero_as_utc', [True, False])
340 @pytest.mark.parametrize('tzstr,exception', [
348 with pytest.raises(exception):
379 @pytest.mark.parametrize('d,dt_fmt', __make_date_examples())
380 @pytest.mark.parametrize('as_bytes', [True, False])
392 @pytest.mark.parametrize('isostr,exception', [
402 with pytest.raises(exception):
453 @pytest.mark.parametrize('time_val,time_fmt', __make_time_examples())
454 @pytest.mark.parametrize('as_bytes', [True, False])
467 @pytest.mark.parametrize('isostr', [
482 @pytest.mark.parametrize('isostr,exception', [
504 with pytest.raises(exception):
508 @pytest.mark.xfail()
509 @pytest.mark.parametrize('isostr,exception', [
515 with pytest.raises(exception):