Matt Furden
fd62815ce5
Fix test variable name change
2017-10-21 09:42:23 -07:00
Matt Furden
c0092e74ae
Add prefer_past option for when
...
When parsing dates from websites when encountering ambiguous dates like "December 12th" this is interpreted in the future (when the current date is in October).
When parsing dates that we know must be in the past this is not the correct behavior.
Add a `prefer_past` keyword argument to `when` to allow the user to ensure the date is parsed as being in the past.
2017-10-15 21:49:03 -07:00
Rich Jones
b9c501b0e4
Fixes #98 - add support for time struct with test and docs
2017-09-20 19:32:37 +02:00
Dima Spivak
fa966900e1
Fix MayaInterval.iso8601()
2017-09-02 11:47:32 -07:00
Troy Harrison
cbe9f6bae7
Adds test for issue #89
2017-06-28 14:27:57 -05:00
Moin
d5e4853886
updated test to use private _seconds_or_timedelta
2017-05-30 20:03:20 +05:30
Moin
51c4298ece
fixed review comment related to argument type check validator and fixed indentation issues
2017-05-28 23:20:40 +05:30
Moin
74092289dd
modified test case to validate invalid argument scenario
2017-05-28 23:08:09 +05:30
kennethreitz
251f535d67
Merge pull request #68 from moin18/seconds_or_timedelta_fix
...
fix 'seconds_or_timedelta' to return ONLY 'datetime.timedelta' object
2017-05-28 08:55:15 -07:00
kennethreitz
98e9a2190a
Merge pull request #71 from timofurrer/use-valuerror
...
Raise ValueError instead of AssertionError
2017-05-28 08:54:27 -07:00
Timo Furrer
4d88eede9d
Fix failing tests
2017-05-28 12:23:26 +02:00
Timo Furrer
971ecec9cf
Raise ValueError instead of AssertionError
2017-05-28 12:18:35 +02:00
Moin
a8a18462fe
fix 'seconds_or_timedelta' to return ONLY 'datetime.timedelta' object
2017-05-28 06:49:18 +05:30
Timo Furrer
b2ac4f08a5
Move tests into tests directory
2017-05-28 00:33:41 +02:00