Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
C
common_helper_filter
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
fact-gitdep
common_helper_filter
Commits
17579a44
Commit
17579a44
authored
Oct 13, 2017
by
Peter Weidenbach
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
test coverage improved
parent
053899cc
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
6 additions
and
2 deletions
+6
-2
.travis.yml
.travis.yml
+1
-1
pytest.ini
pytest.ini
+1
-1
test_time.py
test/test_time.py
+4
-0
No files found.
.travis.yml
View file @
17579a44
...
...
@@ -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.ini
View file @
17579a44
[pytest]
addopts
=
--pep8 -v
addopts
=
--pep8 -v
--cov=./
pep8ignore
=
*.py E501
test/test_time.py
View file @
17579a44
...
...
@@ -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'
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment