mirror of https://github.com/tqdm/tqdm.git
First dumb test
This commit is contained in:
parent
777314ce9a
commit
da4b29f3cd
|
@ -0,0 +1,2 @@
|
|||
[pytest]
|
||||
python_files = test*.py
|
|
@ -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'
|
||||
|
|
@ -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
|
Loading…
Reference in New Issue