First dumb test

This commit is contained in:
Ivan Ivanov 2014-02-03 22:45:38 +13:00
parent 777314ce9a
commit da4b29f3cd
3 changed files with 23 additions and 0 deletions

2
pytest.ini Normal file
View File

@ -0,0 +1,2 @@
[pytest]
python_files = test*.py

9
tests.py Normal file
View File

@ -0,0 +1,9 @@
from __future__ import unicode_literals
from tqdm import format_interval
def test_format_interval():
assert format_interval(60) == '01:00'
assert format_interval(6160) == '1:42:40'
assert format_interval(238113) == '66:08:33'

12
tox.ini Normal file
View File

@ -0,0 +1,12 @@
# Tox (http://tox.testrun.org/) is a tool for running tests
# in multiple virtualenvs. This configuration file will run the
# test suite on all supported python versions. To use it, "pip install tox"
# and then run "tox" from this directory.
[tox]
envlist = py26, py27, py32
[testenv]
commands = py.test
deps =
pytest