Skip to content

Commit

Permalink
add unit test to timeutils.py
Browse files Browse the repository at this point in the history
tweak .travis.yml
  • Loading branch information
ikreymer committed Feb 25, 2014
1 parent b5d8acc commit 349a1a7
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
5 changes: 2 additions & 3 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,8 @@ python:
- "2.7"
# command to install dependencies
install:
- "python setup.py -q install"
- "pip install python-coveralls"
- "pip install pytest-cov"
- python setup.py -q install
- pip install coverage pytest-cov coveralls --use-mirrors
# command to run tests
#script: nosetests --with-doctest
#script: py.test run-tests.py ./pywb/ --doctest-modules --ignore=setup.py
Expand Down
4 changes: 4 additions & 0 deletions pywb/utils/timeutils.py
Original file line number Diff line number Diff line change
Expand Up @@ -162,6 +162,10 @@ def timestamp_to_datetime(string):
>>> timestamp_to_datetime('40001965252477')
datetime.datetime(2999, 12, 31, 23, 24, 59)
# not a number!
>>> timestamp_to_datetime('2010abc')
datetime.datetime(2010, 12, 31, 23, 59, 59)
"""

# pad to 6 digits
Expand Down

0 comments on commit 349a1a7

Please sign in to comment.