russellballestrini
b2f6af9d70
The result of running black .
...
changed ago.py
changed setup.py
changed test_ago.py
2018-05-25 17:33:10 -04:00
russellballestrini
36102bba88
fix millisecs versus microsecs
...
changed ago.py
changed setup.py
changed test_ago.py
2017-10-14 20:49:50 -04:00
5c9ba685d2
version 0.0.9 support for int/float timestamps
...
changed README.rst
changed ago.py
changed setup.py
changed test_ago.py
2016-09-21 16:31:48 -04:00
russellballestrini
f586eaa8cb
new release, adds abbreviate parameter!
2016-02-01 23:24:38 -05:00
sbraz
770fb5f3c4
Changed tests and added print_function for Python 2.6 compatibility.
2014-02-27 14:35:30 +01:00
RussellBallestrini
e95b5d8c10
python3.x merge caused issues with python2.x compat
...
instead of importing division from future we simply use int() to cast
floats to integers.
nosetests: on python2.7 passes
python2 test_ago.py: passes
python3 test_ago.py: passes
TODO: Does nosetests work with python3.x?
branch 'default'
changed ago.py
changed test_ago.py
2014-02-25 11:55:43 -05:00
sbraz
cd08476137
Added Python 3 compatibility.
2014-02-21 22:44:06 +01:00
RussellBallestrini
76847a986a
wrote a failing test case to prove that my most recent counter removal commit
...
caused a hidden functional bug. Next commit should alter ago.py to make this te
st pass.
test_zero_day_is_skipped_display_hour()
2013-05-23 09:27:41 -04:00
RussellBallestrini
49ff995130
Removed need to keep track of counter, which reduces complexity
...
and chance of introducing errors, by slicing the the units tuple
by the percision. Removed __main__ because nosetest --with-coverage
was flagging it. It was un-nessasary.
Special thanks to Eric Rasmussen who inspired this commit.
2013-05-22 23:17:53 -04:00
RussellBallestrini
a2574a05d8
ago 0.0.5 version
...
* consolidated human and delta2human
* fixed docs and tests to reflect consolidation
2013-01-12 15:06:09 -05:00
RussellBallestrini
1e4fe16b72
Fixed test to use types
2013-01-12 14:27:23 -05:00
RussellBallestrini
fb0ffca26e
* adjusted past_format and future_format to past_tense and future_tense
...
* corrected all tests and documentation to reflect new keyword argument names
* changed example _tense strings to use {} instead of {0}
* cleaned up docstrings
2013-01-12 14:17:49 -05:00
RussellBallestrini
3cbd5101b3
The format keyword arguments were mismatched between human and delta2human.
...
The name of these arguments is still up for discussion.
2013-01-09 09:47:46 -05:00
RussellBallestrini
7333e31f43
* Added a bunch of tests
...
* refactored abs(delta) into delta2dict
2013-01-08 21:25:45 -05:00
RussellBallestrini
bcb2798a3f
Fix test to reflect new future logic
2013-01-08 20:48:57 -05:00
RussellBallestrini
89d73aa9dd
Integrated David Beitey's code ( https://bitbucket.org/davidjb )
...
https://bitbucket.org/russellballestrini/ago/pull-request/1/add-support-for-future-dates-minor-readme/
2013-01-08 20:43:48 -05:00
RussellBallestrini
87afe070a3
Another test
2013-01-08 00:50:57 -05:00
RussellBallestrini
846593e20b
Added 4 tests, more test coverage needed
2013-01-08 00:31:51 -05:00
RussellBallestrini
9406a387a2
moved test to its own file
2013-01-07 21:57:22 -05:00