Commit 17579a44 by Peter Weidenbach

test coverage improved

parent 053899cc
......@@ -7,6 +7,6 @@ install:
- "python setup.py -q install"
- "pip install pytest-pep8 pytest-cov codecov"
# command to run tests
script: pytest --cov-config coveragerc --cov=./
script: pytest
after_success:
- codecov
[pytest]
addopts = --pep8 -v
addopts = --pep8 -v --cov=./
pep8ignore =
*.py E501
......@@ -17,3 +17,7 @@ def test_time_format_different_descriptions(input_seconds, description, expected
def test_time_format_simple():
assert '{}'.format(time_format(65)) == '1m, 5s'
def test_repr_function():
assert time_format(65).__repr__() == '1m, 5s'
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment